From d604ebd8fe9e6ff060d7953a37f2d7b13d1b1d9b Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Wed, 3 Jul 2019 22:08:46 +0200 Subject: [PATCH] test_qemu_running_processes: wait 5 min, not 3 (!1799) Be more patient with waiting for processes to start up. From looking at the logs, it seems that the only reason CI was failing is because we did not wait long enough. --- test/test_qemu_running_processes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_qemu_running_processes.py b/test/test_qemu_running_processes.py index d709fb1c..e06ed735 100644 --- a/test/test_qemu_running_processes.py +++ b/test/test_qemu_running_processes.py @@ -137,12 +137,12 @@ def ssh_run(args, command): return ret -def is_running(args, programs, tries=180, sleep_before_retry=1): +def is_running(args, programs, tries=300, sleep_before_retry=1): """ Simple check that looks for program names in the output of "ps ax". This is error-prone, only use it with programs that have a unique name. With defaults retries and sleep_before_retry values, it will try each - second for 3 minutes. + second for 5 minutes. :param programs: list of programs to check for, e.g. ["xfce4-desktop"] :param tries: amount of tries with the wrong result before giving up