summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2019-04-12 07:17:32 -0700
committerGitHub <noreply@github.com>2019-04-12 07:17:32 -0700
commit6ddc67c694dc60641606955364fe23b1c38406ac (patch)
tree8e965c09da545ad35248639ccd398774e98861d1
parent387d6012ba5ef0860df665132c1e3e3017405b8f (diff)
parent859bda1936ee67a3da7a197f5207419493fffef0 (diff)
downloadpodman-6ddc67c694dc60641606955364fe23b1c38406ac.tar.gz
podman-6ddc67c694dc60641606955364fe23b1c38406ac.tar.bz2
podman-6ddc67c694dc60641606955364fe23b1c38406ac.zip
Merge pull request #2907 from edsantiago/uidmap_test_fix
new uidmap BATS test: fix
-rw-r--r--test/system/030-run.bats12
1 files changed, 8 insertions, 4 deletions
diff --git a/test/system/030-run.bats b/test/system/030-run.bats
index eef05747f..bdbe724ef 100644
--- a/test/system/030-run.bats
+++ b/test/system/030-run.bats
@@ -34,11 +34,15 @@ echo $rand | 0 | $rand
}
@test "podman run - uidmapping has no /sys/kernel mounts" {
- run_podman $expected_rc run --uidmapping 0:100:10000 $IMAGE mount | grep /sys/kernel
- is "$output" "" "podman run $cmd - output"
+ skip_if_rootless "cannot umount as rootless"
- run_podman $expected_rc run --net host --uidmapping 0:100:10000 $IMAGE mount | grep /sys/kernel
- is "$output" "" "podman run $cmd - output"
+ run_podman run --rm --uidmap 0:100:10000 $IMAGE mount
+ run grep /sys/kernel <(echo "$output")
+ is "$output" "" "unwanted /sys/kernel in 'mount' output"
+
+ run_podman run --rm --net host --uidmap 0:100:10000 $IMAGE mount
+ run grep /sys/kernel <(echo "$output")
+ is "$output" "" "unwanted /sys/kernel in 'mount' output (with --net=host)"
}
# vim: filetype=sh