Commit 2b9987f4 authored by ale's avatar ale

Wait 5 minutes for the system to stabilize in full test

parent 6df2b1d6
Pipeline #2579 passed with stage
in 21 minutes and 10 seconds
......@@ -11,7 +11,7 @@ run_base_test:
run_full_test:
stage: test
script: "cd test && ./run-test.sh --apt-proxy $APT_PROXY_ADDR full"
script: "cd test && ./run-test.sh --wait-time 300 --apt-proxy $APT_PROXY_ADDR full"
tags: [ai3]
only:
- schedules
......
......@@ -80,8 +80,7 @@ run_ansible() {
run_integration_test() {
# Give the system some time to stabilize.
# TODO: increase this to >5 minutes so that alerts have time to fire.
sleep 30
sleep ${wait_time}
../../float run integration-test \
|| die "failed to run the integration tests"
......@@ -97,6 +96,7 @@ contained in 'test-dir'.
Known options:
--keep Do not destroy the VMs after running tests.
--apt-proxy ADDR Use the specified APT proxy (host:port).
--wait-time SECS Wait some time before running tests (default: 30 seconds).
--help Print this help message.
EOF
......@@ -104,6 +104,7 @@ EOF
keep_vms=0
apt_proxy=
wait_time=30
while [ $# -gt 0 ]; do
case "$1" in
--keep)
......@@ -117,6 +118,10 @@ while [ $# -gt 0 ]; do
usage
exit 0
;;
--wait-time)
shift
wait_time="$1"
;;
-*)
echo "Unknown option '$1'" >&2
usage >&2
......
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