diff options
author | openshift-ci[bot] <75433959+openshift-ci[bot]@users.noreply.github.com> | 2022-08-03 13:55:25 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-03 13:55:25 +0000 |
commit | e54dac4dc66701d310621a6cfbe41ecc4a6b8711 (patch) | |
tree | 149e6bdf436eb1c3a6a6c561f4c98872955071c1 /test | |
parent | 1139cd9b8142aa4f4efb0f930a398453d521c1d9 (diff) | |
parent | 1dbd61653d5538ef364f7b325be789eb9be4da68 (diff) | |
download | podman-e54dac4dc66701d310621a6cfbe41ecc4a6b8711.tar.gz podman-e54dac4dc66701d310621a6cfbe41ecc4a6b8711.tar.bz2 podman-e54dac4dc66701d310621a6cfbe41ecc4a6b8711.zip |
Merge pull request #15166 from sstosh/ci-mount-rootless
Cirrus: Fix e2e tests for "mount_rootless_test"
Diffstat (limited to 'test')
-rw-r--r-- | test/e2e/mount_rootless_test.go | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/test/e2e/mount_rootless_test.go b/test/e2e/mount_rootless_test.go index 994a5899b..b0452deda 100644 --- a/test/e2e/mount_rootless_test.go +++ b/test/e2e/mount_rootless_test.go @@ -52,9 +52,16 @@ var _ = Describe("Podman mount", func() { Expect(setup).Should(Exit(0)) cid := setup.OutputToString() - session := podmanTest.Podman([]string{"unshare", PODMAN_BINARY, "mount", cid}) + // command: podman <options> unshare podman <options> mount cid + args := []string{"unshare", podmanTest.PodmanBinary} + opts := podmanTest.PodmanMakeOptions([]string{"mount", cid}, false, false) + args = append(args, opts...) + + // container root file system location is /tmp/... because "--root /tmp/..." + session := podmanTest.Podman(args) session.WaitWithDefaultTimeout() - Expect(setup).Should(Exit(0)) + Expect(session).Should(Exit(0)) + Expect(session.OutputToString()).To(ContainSubstring("/tmp")) }) It("podman image mount", func() { @@ -71,8 +78,15 @@ var _ = Describe("Podman mount", func() { setup.WaitWithDefaultTimeout() Expect(setup).Should(Exit(0)) - session := podmanTest.Podman([]string{"unshare", PODMAN_BINARY, "image", "mount", ALPINE}) + // command: podman <options> unshare podman <options> image mount ALPINE + args := []string{"unshare", podmanTest.PodmanBinary} + opts := podmanTest.PodmanMakeOptions([]string{"image", "mount", ALPINE}, false, false) + args = append(args, opts...) + + // image location is /tmp/... because "--root /tmp/..." + session := podmanTest.Podman(args) session.WaitWithDefaultTimeout() - Expect(setup).Should(Exit(0)) + Expect(session).Should(Exit(0)) + Expect(session.OutputToString()).To(ContainSubstring("/tmp")) }) }) |