[QEMU] extend auto test timeout (#1247)

Recently, github CI test case, Qemu-linux_boot.py, randomly fails.

Comparing the logs between failed and pass cases, we can find:

  1. the failure is caused by timeout before Minimal Linux
     completely boots into console and shows "Welcome to Minimal
     Linux" messages.

     Although such timeout can be a real error (true-positive),
     it is also possible just a false alarm (false-positive)...

  2. for a failed case, a force push to trigger another CI check
     can result in pass, even no code changes. Thus, the timeout
     failure points to CI environment (e.g., loading) - a false alarm.

  3. the margin (of pass case to timeout) is about 0.4 sec.

This patch increases timeout for 2 seconds to avoid unexpected
test timeout caused CI envornment (e.g., loading).

Signed-off-by: Stanley Chang <stanley.chang@intel.com>
This commit is contained in:
stanley 2021-08-05 00:45:08 +08:00 committed by GitHub
parent 237b5f3d45
commit f87b8c3c49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ def main():
# run QEMU boot with timeout
output = []
lines = run_qemu(bios_img, os_dir, timeout = 8)
lines = run_qemu(bios_img, os_dir, timeout = 10)
output.extend(lines)
# check test result