Add flag to skip destruction of test VMS.
This should be useful when we just want to type one make integration-tests / ./run-integration-tests command to make/start VMs/configure them/test, but also investigate potential failures afterwards.
This commit is contained in:
1 parent
29d50bbf09
commit
0a2beedad3
1 file changed
+3
-1
@@ -40,6 +40,7 @@ CREATE_IMAGE=${CREATE_IMAGE:-}
|
||||
CREATE_IMAGE_TIMEOUT_IN_SECS=${CREATE_IMAGE_TIMEOUT_IN_SECS:-600}
|
||||
# Lifecycle flags:
|
||||
SKIP_CONFIG=${SKIP_CONFIG:-}
|
||||
SKIP_DESTROY=${SKIP_DESTROY:-}
|
||||
|
||||
function print_vars() {
|
||||
echo "--- Variables: Main ---"
|
||||
@@ -60,6 +61,7 @@ function print_vars() {
|
||||
echo "CREATE_IMAGE_TIMEOUT_IN_SECS=$CREATE_IMAGE_TIMEOUT_IN_SECS"
|
||||
echo "--- Variables: Flags ---"
|
||||
echo "SKIP_CONFIG=$SKIP_CONFIG"
|
||||
echo "SKIP_DESTROY=$SKIP_DESTROY"
|
||||
}
|
||||
|
||||
function verify_dependencies() {
|
||||
@@ -341,7 +343,7 @@ function main() {
|
||||
"$DIR/setup.sh"
|
||||
run_tests "$TESTS"
|
||||
status=$?
|
||||
provision off "$PROVIDER"
|
||||
[ -z "$SKIP_DESTROY" ] && provision off "$PROVIDER"
|
||||
exit $status
|
||||
;;
|
||||
|
||||
|
||||
Reference in new issue
Block a user