diff options
author | Matthew Heon <matthew.heon@gmail.com> | 2017-11-28 22:17:13 -0500 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2017-11-29 12:15:16 +0000 |
commit | 4a68a5303c74298f50c4a2d51e75527d439f09f1 (patch) | |
tree | da027451d9d2532b682e1ddaabc5801911d0a0e8 /test/kpod_run.bats | |
parent | 3180e387955c7777ab15ed2dfe7e587b54e8c308 (diff) | |
download | podman-4a68a5303c74298f50c4a2d51e75527d439f09f1.tar.gz podman-4a68a5303c74298f50c4a2d51e75527d439f09f1.tar.bz2 podman-4a68a5303c74298f50c4a2d51e75527d439f09f1.zip |
Attempt fix for persistent bash parameter expansion issues
Signed-off-by: Matthew Heon <matthew.heon@gmail.com>
Closes: #68
Approved by: rhatdan
Diffstat (limited to 'test/kpod_run.bats')
-rw-r--r-- | test/kpod_run.bats | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/test/kpod_run.bats b/test/kpod_run.bats index 65f3e9df4..626a838b9 100644 --- a/test/kpod_run.bats +++ b/test/kpod_run.bats @@ -11,13 +11,13 @@ function setup() { } @test "run a container based on local image" { - run ${KPOD_BINARY} ${KPOD_OPTIONS} run $BB ls + run bash -c "${KPOD_BINARY} ${KPOD_OPTIONS} run $BB ls" echo "$output" [ "$status" -eq 0 ] } @test "run a container based on a remote image" { - run ${KPOD_BINARY} ${KPOD_OPTIONS} run ${BB_GLIBC} ls + run bash -c "${KPOD_BINARY} ${KPOD_OPTIONS} run ${BB_GLIBC} ls" echo "$output" [ "$status" -eq 0 ] } @@ -27,11 +27,11 @@ function setup() { skip "SELinux not enabled" fi - run ${KPOD_BINARY} ${KPOD_OPTIONS} run ${ALPINE} cat /proc/self/attr/current + run bash -c "${KPOD_BINARY} ${KPOD_OPTIONS} run ${ALPINE} cat /proc/self/attr/current" echo "$output" firstLabel=$output - run ${KPOD_BINARY} ${KPOD_OPTIONS} run ${ALPINE} cat /proc/self/attr/current + run bash -c "${KPOD_BINARY} ${KPOD_OPTIONS} run ${ALPINE} cat /proc/self/attr/current" echo "$output" [ "$output" != "${firstLabel}" ] } @@ -46,19 +46,19 @@ function setup() { } @test "run capabilities test" { - run bash -c ${KPOD_BINARY} ${KPOD_OPTIONS} run --cap-add all ${ALPINE} cat /proc/self/status + run bash -c "${KPOD_BINARY} ${KPOD_OPTIONS} run --cap-add all ${ALPINE} cat /proc/self/status" echo "$output" [ "$status" -eq 0 ] - run bash -c ${KPOD_BINARY} ${KPOD_OPTIONS} run --cap-add sys_admin ${ALPINE} cat /proc/self/status + run bash -c "${KPOD_BINARY} ${KPOD_OPTIONS} run --cap-add sys_admin ${ALPINE} cat /proc/self/status" echo "$output" [ "$status" -eq 0 ] - run bash -c ${KPOD_BINARY} ${KPOD_OPTIONS} run --cap-drop all ${ALPINE} cat /proc/self/status + run bash -c "${KPOD_BINARY} ${KPOD_OPTIONS} run --cap-drop all ${ALPINE} cat /proc/self/status" echo "$output" [ "$status" -eq 0 ] - run bash -c ${KPOD_BINARY} ${KPOD_OPTIONS} run --cap-drop setuid ${ALPINE} cat /proc/self/status + run bash -c "${KPOD_BINARY} ${KPOD_OPTIONS} run --cap-drop setuid ${ALPINE} cat /proc/self/status" echo "$output" [ "$status" -eq 0 ] @@ -83,7 +83,7 @@ function setup() { [ "$status" -eq 0 ] [ "$output" = "BAR" ] - run ${KPOD_BINARY} ${KPOD_OPTIONS} run -env FOO ${ALPINE} printenv + run bash -c "${KPOD_BINARY} ${KPOD_OPTIONS} run -env FOO ${ALPINE} printenv" echo "$output" [ "$status" -ne 0 ] @@ -99,9 +99,9 @@ IMAGE="docker.io/library/fedora:latest" @test "run limits test" { - ${KPOD_BINARY} ${KPOD_OPTIONS} pull ${IMAGE} + run bash -c "${KPOD_BINARY} ${KPOD_OPTIONS} pull ${IMAGE}" - run ${KPOD_BINARY} ${KPOD_OPTIONS} run --ulimit rtprio=99 --cap-add=sys_nice ${IMAGE} cat /proc/self/sched + run bash -c "${KPOD_BINARY} ${KPOD_OPTIONS} run --ulimit rtprio=99 --cap-add=sys_nice ${IMAGE} cat /proc/self/sched" echo $output [ "$status" -eq 0 ] |