aboutsummaryrefslogtreecommitdiff
path: root/test/kpod_wait.bats
diff options
context:
space:
mode:
Diffstat (limited to 'test/kpod_wait.bats')
-rw-r--r--test/kpod_wait.bats10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/kpod_wait.bats b/test/kpod_wait.bats
index 8d11e634d..bb4b30a0b 100644
--- a/test/kpod_wait.bats
+++ b/test/kpod_wait.bats
@@ -26,7 +26,7 @@ function container_start() {
@test "wait on a bogus container" {
skip "Needs to be converted to kpod run"
start_crio
- run ${KPOD_BINARY} ${KPOD_OPTIONS} wait 12343
+ run bash -c ${KPOD_BINARY} ${KPOD_OPTIONS} wait 12343
echo $output
[ "$status" -eq 1 ]
stop_crio
@@ -34,7 +34,7 @@ function container_start() {
@test "wait on a stopped container" {
skip "Needs to be converted to kpod run"
- run ${KPOD_BINARY} ${KPOD_OPTIONS} pull docker.io/library/busybox:latest
+ run bash -c ${KPOD_BINARY} ${KPOD_OPTIONS} pull docker.io/library/busybox:latest
echo $output
[ "$status" -eq 0 ]
start_crio
@@ -43,7 +43,7 @@ function container_start() {
ctr_id=$(container_create_from_template "test-CTR" "docker.io/library/busybox:latest" '["ls"]' "${pod_id}")
echo $ctr_id
container_start $ctr_id
- run ${KPOD_BINARY} ${KPOD_OPTIONS} wait $ctr_id
+ run bash -c ${KPOD_BINARY} ${KPOD_OPTIONS} wait $ctr_id
[ "$status" -eq 0 ]
cleanup_ctrs
cleanup_pods
@@ -52,7 +52,7 @@ function container_start() {
@test "wait on a sleeping container" {
skip "Needs to be converted to kpod run"
- run ${KPOD_BINARY} ${KPOD_OPTIONS} pull docker.io/library/busybox:latest
+ run bash -c ${KPOD_BINARY} ${KPOD_OPTIONS} pull docker.io/library/busybox:latest
echo $output
[ "$status" -eq 0 ]
start_crio
@@ -63,7 +63,7 @@ function container_start() {
run container_start $ctr_id
echo $output
[ "$status" -eq 0 ]
- run ${KPOD_BINARY} ${KPOD_OPTIONS} wait $ctr_id
+ run bash -c ${KPOD_BINARY} ${KPOD_OPTIONS} wait $ctr_id
echo $output
[ "$status" -eq 0 ]
cleanup_ctrs