From 3db735c6d1bd3fdcf77f4aeed581ae852d79b951 Mon Sep 17 00:00:00 2001 From: baude Date: Mon, 4 Dec 2017 10:43:09 -0600 Subject: 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 Closes: #100 Approved by: rhatdan --- test/kpod_ps.bats | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'test/kpod_ps.bats') diff --git a/test/kpod_ps.bats b/test/kpod_ps.bats index 859cbaa99..3a5d94f59 100644 --- a/test/kpod_ps.bats +++ b/test/kpod_ps.bats @@ -120,3 +120,12 @@ function teardown() { [ "$status" -eq 0 ] run ${KPOD_BINARY} ${KPOD_OPTIONS} stop $ctr_id } + +@test "kpod ps short options" { + run ${KPOD_BINARY} ${KPOD_OPTIONS} run -d ${ALPINE} sleep 99 + ctr_id="$output" + run bash -c ${KPOD_BINARY} ${KPOD_OPTIONS} ps -aqs + echo "$output" + [ "$status" -eq 0 ] + run ${KPOD_BINARY} ${KPOD_OPTIONS} stop $ctr_id +} -- cgit v1.2.3-54-g00ecf