Commit e47007bc authored by ale's avatar ale

Add a --skip-test option to the test driver

Useful when we're only using run-test.sh to set up an environment.
parent 4449376d
Pipeline #11253 passed with stages
in 10 minutes and 27 seconds
......@@ -148,6 +148,7 @@ apt_proxy=${APT_PROXY:-}
wait_time=30
mode=${MODE:-local}
private_network="10.$(( 1 + ($RANDOM % 254) )).$(( 1 + ($RANDOM % 254) )).0"
skip_tests=0
while [ $# -gt 0 ]; do
case "$1" in
--keep)
......@@ -178,6 +179,9 @@ while [ $# -gt 0 ]; do
shift
save_logs="$1"
;;
--skip-tests)
skip_tests=1
;;
-*)
echo "Unknown option '$1'" >&2
usage >&2
......@@ -227,7 +231,9 @@ clean
start_vagrant
check_hosts_ready
run_ansible
run_integration_test ${mode}
if [ $skip_tests -eq 0 ]; then
run_integration_test ${mode}
fi
popd
# Execute the env-specific tests, if any.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment