meta: firewall: Fix firewalld test with non-abstract sockets
On a recent Fedora Rawhide, dbus-daemon-1.14.8-1 prints a string prefixed by 'unix:path' instead of the expected 'unix:abstract', thereby failing the test. Allowing this alternate prefix fixes the test, so for communication with the daemon it is not relevant. Signed-off-by: Phil Sutter <psutter@redhat.com>
This commit is contained in:
parent
bf79945c70
commit
0a100e5d8f
@ -86,7 +86,8 @@ func spawnSessionDbus(wg *sync.WaitGroup) (string, *exec.Cmd) {
|
||||
bytes, err := bufio.NewReader(stdout).ReadString('\n')
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
busAddr := strings.TrimSpace(bytes)
|
||||
Expect(strings.HasPrefix(busAddr, "unix:abstract")).To(BeTrue())
|
||||
Expect(strings.HasPrefix(busAddr, "unix:abstract") ||
|
||||
strings.HasPrefix(busAddr, "unix:path")).To(BeTrue())
|
||||
|
||||
var startWg sync.WaitGroup
|
||||
wg.Add(1)
|
||||
|
Loading…
x
Reference in New Issue
Block a user