[ci][github] Fix CI stability
* Sometimes apt-get install qemu fails with fetch error, run apt-get update first to mitigate * unittest.py often fails due to app shell not started in 0.5s, increase timeout
This commit is contained in:
committed by
Kelvin Zhang
parent
15e3cca123
commit
91a65fd20d
1
.github/workflows/github-ci-clang.yml
vendored
1
.github/workflows/github-ci-clang.yml
vendored
@@ -72,6 +72,7 @@ jobs:
|
||||
if: ${{ matrix.project == 'qemu-virt-arm64-test' }}
|
||||
shell: bash
|
||||
run: |
|
||||
env -i DEBIAN_FRONTEND=noninteractive sudo apt-get update
|
||||
env -i DEBIAN_FRONTEND=noninteractive sudo apt-get install -y qemu-system-arm
|
||||
- name: unittest
|
||||
if: ${{ matrix.project == 'qemu-virt-arm64-test' }}
|
||||
|
||||
@@ -66,7 +66,7 @@ def main():
|
||||
try:
|
||||
os.set_blocking(p.stdout.fileno(), False)
|
||||
condition_met, output = wait_for_output(
|
||||
p.stdout, lambda l: "starting app shell" in l, 0.5)
|
||||
p.stdout, lambda l: "starting app shell" in l, 1)
|
||||
assert condition_met, "Did not see 'starting app shell', stdout: {}".format(
|
||||
"".join(output))
|
||||
p.stdin.write("uefi_load virtio0\n")
|
||||
|
||||
Reference in New Issue
Block a user