Better retries on ZK errors in sh tests

This commit is contained in:
Alexey Milovidov 2021-04-05 05:17:17 +03:00
parent 0eba575fcf
commit 1bd4febfd5

View File

@ -406,7 +406,7 @@ def run_tests_array(all_tests_with_params):
status += stderr
else:
counter = 1
while proc.returncode != 0 and need_retry(stderr):
while need_retry(stderr):
proc, stdout, stderr, total_time = run_single_test(args, ext, server_logs_level, client_options, case_file, stdout_file, stderr_file, suite_tmp_dir)
sleep(2**counter)
counter += 1