From 87a228d9fa7863f66b82da5b7f1d3cbe58900095 Mon Sep 17 00:00:00 2001 From: villadalmine Date: Fri, 26 Aug 2016 13:57:20 -0300 Subject: [PATCH] Added rebuild images --- tests/image-test.bats | 8 ++++++++ 1 file changed, 8 insertions(+) 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 ] +}