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.
This commit is contained in:
Oliver Smith 2019-07-03 22:08:46 +02:00
parent d13997241c
commit d604ebd8fe
No known key found for this signature in database
GPG Key ID: 5AE7F5513E0885CB
1 changed files with 2 additions and 2 deletions

View File

@ -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