Make max_tries from control_plane_test_stop.sh configurable

In some setups, the max_tries hardcoded value of 60 (which corresponds to
5 min) is not enough to finish the test.

Change-Id: Ifb0cfba433d09cb1c9b752e5f276edbebf0aeb0a
This commit is contained in:
Eduardo Olivares 2023-08-22 10:40:29 +02:00
parent 4ebd1d38a8
commit 4368f2b8c3
2 changed files with 3 additions and 1 deletions

View File

@ -201,6 +201,8 @@ control_plane_check: false
tu_ctl_plane_max_successive_failure: 2
# Max number of total failure (euristic for update run)
tu_ctl_plane_max_failure: 6
# Max retries waiting for the control plane test to stop
control_plane_test_stop_max_retries: 60 # 5 seconds x num_tries = 5 min by default
# enable web load test
fip_http_check: false

View File

@ -22,7 +22,7 @@ result_file={{ working_dir }}/control-plane-test-${PID}.log
kill "${PID}"
max_tries=60 # 5min
max_tries={{ control_plane_test_stop_max_retries }}
current_try=0
until [ -e ${done_file} ]; do
if [ $current_try -le $max_tries ]; then