Skip to content

Commit

Permalink
Merge pull request #918 from SirPhuttel/rawhide_testing
Browse files Browse the repository at this point in the history
Two minor testsuite fixes
  • Loading branch information
squeed authored Jul 21, 2023
2 parents f2574a7 + 8e69e38 commit fb8ca5d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion plugins/meta/firewall/firewall_firewalld_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion test_linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@ for t in ${PKG}; do
done

# Run the pkg/ns tests as non root user
mkdir /tmp/cni-rootless
mkdir -p /tmp/cni-rootless
(export XDG_RUNTIME_DIR=/tmp/cni-rootless; cd pkg/ns/; unshare -rmn go test)

0 comments on commit fb8ca5d

Please sign in to comment.