Merge pull request #918 from SirPhuttel/rawhide_testing
Two minor testsuite fixes
This commit is contained in:
commit
fb8ca5d31e
@ -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)
|
||||
|
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user