Skip to content

Commit

Permalink
scripts/vm-util: Increase timeout for non-KVM runs
Browse files Browse the repository at this point in the history
  • Loading branch information
avdgrinten committed Dec 9, 2024
1 parent 25131a5 commit 018cbb1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/vm-util.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,10 +542,12 @@ def do_qemu(args):
expect_none = [re.compile(expr) for expr in args.expect_not]

runner = QemuRunner()
# Adjust for the fact that non-KVM runs are much slower.
timeout_factor = 1 if have_kvm else 3
if args.timeout is not None:
runner.timeout = args.timeout
runner.timeout = timeout_factor * args.timeout
if args.io_timeout is not None:
runner.io_timeout = args.io_timeout
runner.io_timeout = timeout_factor * args.io_timeout
asyncio.run(runner.run(qemu, qemu_args, expect_all=expect_all, expect_none=expect_none))


Expand Down

0 comments on commit 018cbb1

Please sign in to comment.