summaryrefslogtreecommitdiff
path: root/test/kpod_run.bats
diff options
context:
space:
mode:
authorbaude <bbaude@redhat.com>2017-12-04 10:43:09 -0600
committerAtomic Bot <atomic-devel@projectatomic.io>2017-12-04 20:03:16 +0000
commit3db735c6d1bd3fdcf77f4aeed581ae852d79b951 (patch)
treedaad6c759e45b7d316950be9aa57498fecb7a86a /test/kpod_run.bats
parent265efcb9f88a78ee52eb5644d4db86e49788991f (diff)
downloadpodman-3db735c6d1bd3fdcf77f4aeed581ae852d79b951.tar.gz
podman-3db735c6d1bd3fdcf77f4aeed581ae852d79b951.tar.bz2
podman-3db735c6d1bd3fdcf77f4aeed581ae852d79b951.zip
Short options!
Any subcommand that has two or more booleon short options can now combine those two options. For example: kpod rmi -af (Remove all images forceably) Signed-off-by: baude <bbaude@redhat.com> Closes: #100 Approved by: rhatdan
Diffstat (limited to 'test/kpod_run.bats')
-rw-r--r--test/kpod_run.bats17
1 files changed, 10 insertions, 7 deletions
diff --git a/test/kpod_run.bats b/test/kpod_run.bats
index 5f5377a5e..09a66b874 100644
--- a/test/kpod_run.bats
+++ b/test/kpod_run.bats
@@ -16,6 +16,12 @@ function setup() {
[ "$status" -eq 0 ]
}
+@test "run a container based on local image with short options" {
+ run bash -c "${KPOD_BINARY} ${KPOD_OPTIONS} run -dt $BB ls"
+ echo "$output"
+ [ "$status" -eq 0 ]
+}
+
@test "run a container based on a remote image" {
run bash -c "${KPOD_BINARY} ${KPOD_OPTIONS} run ${BB_GLIBC} ls"
echo "$output"
@@ -65,25 +71,22 @@ function setup() {
}
@test "run environment test" {
-
- ${KPOD_BINARY} ${KPOD_OPTIONS} pull ${ALPINE}
-
- run bash -c "${KPOD_BINARY} ${KPOD_OPTIONS} run -env FOO=BAR ${ALPINE} printenv FOO | tr -d '\r'"
+ run bash -c "${KPOD_BINARY} ${KPOD_OPTIONS} run --env FOO=BAR ${ALPINE} printenv FOO | tr -d '\r'"
echo "$output"
[ "$status" -eq 0 ]
[ $output = "BAR" ]
- run bash -c "${KPOD_BINARY} ${KPOD_OPTIONS} run -env PATH="/bin" ${ALPINE} printenv PATH | tr -d '\r'"
+ run bash -c "${KPOD_BINARY} ${KPOD_OPTIONS} run --env PATH="/bin" ${ALPINE} printenv PATH | tr -d '\r'"
echo "$output"
[ "$status" -eq 0 ]
[ $output = "/bin" ]
- run bash -c "export FOO=BAR; ${KPOD_BINARY} ${KPOD_OPTIONS} run -env FOO ${ALPINE} printenv FOO | tr -d '\r'"
+ run bash -c "export FOO=BAR; ${KPOD_BINARY} ${KPOD_OPTIONS} run --env FOO ${ALPINE} printenv FOO | tr -d '\r'"
echo "$output"
[ "$status" -eq 0 ]
[ "$output" = "BAR" ]
- run bash -c "${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 ]