diff --git a/tests/image-test.bats b/tests/image-test.bats index e500ccc..954199d 100644 --- a/tests/image-test.bats +++ b/tests/image-test.bats @@ -64,3 +64,11 @@ load ../common run bash -c "bin/destroy.sh" [ $status -eq 0 ] } +@test "Rebuilding and destroying in one step" { + run bash -c "bin/build.sh" + if [ $status -ne 0 ]; then + skip "Cannot rebuild the image" + fi + run bash -c "bin/rebuild.sh" + [ $status -eq 0 ] +}