summaryrefslogtreecommitdiff
path: root/test/kpod_pull.bats
diff options
context:
space:
mode:
Diffstat (limited to 'test/kpod_pull.bats')
-rw-r--r--test/kpod_pull.bats42
1 files changed, 21 insertions, 21 deletions
diff --git a/test/kpod_pull.bats b/test/kpod_pull.bats
index c12c62413..4cad2390f 100644
--- a/test/kpod_pull.bats
+++ b/test/kpod_pull.bats
@@ -12,7 +12,7 @@ function teardown() {
run ${KPOD_BINARY} ${KPOD_OPTIONS} pull debian:6.0.10
echo "$output"
[ "$status" -eq 0 ]
- run ${KPOD_BINARY} $KPOD_OPTIONS rmi debian:6.0.10
+ run bash -c ${KPOD_BINARY} $KPOD_OPTIONS rmi debian:6.0.10
echo "$output"
[ "$status" -eq 0 ]
}
@@ -21,7 +21,7 @@ function teardown() {
run ${KPOD_BINARY} $KPOD_OPTIONS pull debian
echo "$output"
[ "$status" -eq 0 ]
- run ${KPOD_BINARY} $KPOD_OPTIONS rmi debian
+ run bash -c ${KPOD_BINARY} $KPOD_OPTIONS rmi debian
echo "$output"
[ "$status" -eq 0 ]
}
@@ -30,7 +30,7 @@ function teardown() {
run ${KPOD_BINARY} $KPOD_OPTIONS pull registry.fedoraproject.org/fedora:rawhide
echo "$output"
[ "$status" -eq 0 ]
- run ${KPOD_BINARY} $KPOD_OPTIONS rmi registry.fedoraproject.org/fedora:rawhide
+ run bash -c ${KPOD_BINARY} $KPOD_OPTIONS rmi registry.fedoraproject.org/fedora:rawhide
echo "$output"
[ "$status" -eq 0 ]
}
@@ -39,7 +39,7 @@ function teardown() {
run ${KPOD_BINARY} $KPOD_OPTIONS pull registry.fedoraproject.org/fedora
echo "$output"
[ "$status" -eq 0 ]
- run ${KPOD_BINARY} $KPOD_OPTIONS rmi registry.fedoraproject.org/fedora
+ run bash -c ${KPOD_BINARY} $KPOD_OPTIONS rmi registry.fedoraproject.org/fedora
echo "$output"
[ "$status" -eq 0 ]
}
@@ -48,7 +48,7 @@ function teardown() {
run ${KPOD_BINARY} $KPOD_OPTIONS pull alpine@sha256:1072e499f3f655a032e88542330cf75b02e7bdf673278f701d7ba61629ee3ebe
echo "$output"
[ "$status" -eq 0 ]
- run ${KPOD_BINARY} $KPOD_OPTIONS rmi alpine:latest
+ run bash -c ${KPOD_BINARY} $KPOD_OPTIONS rmi alpine:latest
echo "$output"
[ "$status" -eq 0 ]
}
@@ -63,7 +63,7 @@ function teardown() {
run ${KPOD_BINARY} ${KPOD_OPTIONS} pull debian
echo "$output"
[ "$status" -eq 0 ]
- run ${KPOD_BINARY} $KPOD_OPTIONS rmi docker.io/debian:latest
+ run bash -c ${KPOD_BINARY} $KPOD_OPTIONS rmi docker.io/debian:latest
echo "$output"
[ "$status" -eq 0 ]
}
@@ -72,7 +72,7 @@ function teardown() {
run ${KPOD_BINARY} ${KPOD_OPTIONS} pull debian:6.0.10
echo "$output"
[ "$status" -eq 0 ]
- run ${KPOD_BINARY} $KPOD_OPTIONS rmi docker.io/debian:6.0.10
+ run bash -c ${KPOD_BINARY} $KPOD_OPTIONS rmi docker.io/debian:6.0.10
echo "$output"
[ "$status" -eq 0 ]
}
@@ -81,57 +81,57 @@ function teardown() {
run ${KPOD_BINARY} ${KPOD_OPTIONS} pull alpine
echo "$output"
[ "$status" -eq 0 ]
- run ${KPOD_BINARY} ${KPOD_OPTIONS} save -o alp.tar alpine
+ run bash -c ${KPOD_BINARY} ${KPOD_OPTIONS} save -o alp.tar alpine
echo "$output"
[ "$status" -eq 0 ]
- run ${KPOD_BINARY} ${KPOD_OPTIONS} rmi alpine
+ run bash -c ${KPOD_BINARY} ${KPOD_OPTIONS} rmi alpine
echo "$output"
[ "$status" -eq 0 ]
- run ${KPOD_BINARY} ${KPOD_OPTIONS} pull docker-archive:alp.tar
+ run bash -c ${KPOD_BINARY} ${KPOD_OPTIONS} pull docker-archive:alp.tar
echo "$output"
[ "$status" -eq 0 ]
- run ${KPOD_BINARY} ${KPOD_OPTIONS} rmi alpine
+ run bash -c ${KPOD_BINARY} ${KPOD_OPTIONS} rmi alpine
echo "$output"
[ "$status" -eq 0 ]
rm -f alp.tar
}
@test "kpod pull from oci-archive" {
- run ${KPOD_BINARY} ${KPOD_OPTIONS} pull alpine
+ run bash -c ${KPOD_BINARY} ${KPOD_OPTIONS} pull alpine
echo "$output"
[ "$status" -eq 0 ]
- run ${KPOD_BINARY} ${KPOD_OPTIONS} save --format oci-archive -o oci-alp.tar alpine
+ run bash -c ${KPOD_BINARY} ${KPOD_OPTIONS} save --format oci-archive -o oci-alp.tar alpine
echo "$output"
[ "$status" -eq 0 ]
- run ${KPOD_BINARY} ${KPOD_OPTIONS} rmi alpine
+ run bash -c ${KPOD_BINARY} ${KPOD_OPTIONS} rmi alpine
echo "$output"
[ "$status" -eq 0 ]
- run ${KPOD_BINARY} ${KPOD_OPTIONS} pull oci-archive:oci-alp.tar
+ run bash -c ${KPOD_BINARY} ${KPOD_OPTIONS} pull oci-archive:oci-alp.tar
echo "$output"
[ "$status" -eq 0 ]
- run ${KPOD_BINARY} ${KPOD_OPTIONS} rmi alpine
+ run bash -c ${KPOD_BINARY} ${KPOD_OPTIONS} rmi alpine
echo "$output"
[ "$status" -eq 0 ]
rm -f oci-alp.tar
}
@test "kpod pull from local directory" {
- run ${KPOD_BINARY} ${KPOD_OPTIONS} pull alpine
+ run bash -c ${KPOD_BINARY} ${KPOD_OPTIONS} pull alpine
echo "$output"
[ "$status" -eq 0 ]
run mkdir test_pull_dir
echo "$output"
[ "$status" -eq 0 ]
- run ${KPOD_BINARY} ${KPOD_OPTIONS} push alpine dir:test_pull_dir
+ run bash -c ${KPOD_BINARY} ${KPOD_OPTIONS} push alpine dir:test_pull_dir
echo "$output"
[ "$status" -eq 0 ]
- run ${KPOD_BINARY} ${KPOD_OPTIONS} rmi alpine
+ run bash -c ${KPOD_BINARY} ${KPOD_OPTIONS} rmi alpine
echo "$output"
[ "$status" -eq 0 ]
- run ${KPOD_BINARY} ${KPOD_OPTIONS} pull dir:test_pull_dir
+ run bash -c ${KPOD_BINARY} ${KPOD_OPTIONS} pull dir:test_pull_dir
echo "$output"
[ "$status" -eq 0 ]
- run ${KPOD_BINARY} ${KPOD_OPTIONS} rmi test_pull_dir
+ run bash -c ${KPOD_BINARY} ${KPOD_OPTIONS} rmi test_pull_dir
echo "$output"
[ "$status" -eq 0 ]
rm -rf test_pull_dir