From d0f3f1fcad043f9f262253f5d35b139a8c38ed6a Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Mon, 27 Nov 2017 14:40:58 -0500 Subject: Fix kpod pause tests - pausing a created container is valid Signed-off-by: Matthew Heon --- test/kpod_pause.bats | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/kpod_pause.bats b/test/kpod_pause.bats index 23c27ae71..3d6ab7b91 100644 --- a/test/kpod_pause.bats +++ b/test/kpod_pause.bats @@ -29,7 +29,10 @@ function teardown() { ctr_id="$output" run bash -c "${KPOD_BINARY} ${KPOD_OPTIONS} pause $ctr_id" echo "$output" - [ "$status" -eq 1 ] + [ "$status" -eq 0 ] + run bash -c "${KPOD_BINARY} ${KPOD_OPTIONS} unpause $ctr_id" + echo "$output" + [ "$status" -eq 0 ] run bash -c "${KPOD_BINARY} ${KPOD_OPTIONS} rm $ctr_id" echo "$output" [ "$status" -eq 0 ] -- cgit v1.2.3-54-g00ecf From 7c2a75335f59847a5ffa3252d0fd47bdee265e7d Mon Sep 17 00:00:00 2001 From: Matthew Heon Date: Mon, 27 Nov 2017 14:54:30 -0500 Subject: Temporarily disable kpod create tests until kpod rm is ready Signed-off-by: Matthew Heon --- test/kpod_create.bats | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test') diff --git a/test/kpod_create.bats b/test/kpod_create.bats index 3d3efcff3..5605b5fe0 100644 --- a/test/kpod_create.bats +++ b/test/kpod_create.bats @@ -11,12 +11,14 @@ function teardown() { } @test "create a container based on local image" { + skip "Reenable after kpod rm merges, and use rm to clean up" run ${KPOD_BINARY} ${KPOD_OPTIONS} create $BB ls echo "$output" [ "$status" -eq 0 ] } @test "create a container based on a remote image" { + skip "Reenable after kpod rm merges, and use rm to clean up" run ${KPOD_BINARY} ${KPOD_OPTIONS} create ${BB_GLIBC} ls echo "$output" [ "$status" -eq 0 ] -- cgit v1.2.3-54-g00ecf