Skip to content

Commit

Permalink
tests : extend ssh connection timeout for test_guest_tsc_deadline_dis…
Browse files Browse the repository at this point in the history
…able

on 24.10, the VMs takes > 75s to boot if -tsc-deadline is added to cpu
argument of qemu
for now, extend the ssh connection timeout to make the test pass
  • Loading branch information
hector-cao committed Nov 20, 2024
1 parent 6e4d152 commit b8bf780
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/tests/test_guest_tsc_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ def test_guest_tsc_deadline_disable(qm):
qm.qcmd.plugins['cpu'].cpu_flags += f',-tsc-deadline'
qm.run()

m = Qemu.QemuSSH(qm)
# NB : on 24.10, the VM takes a long time to boot > 75s (on 24.04, only 15sec)
# for now, extend the ssh connexion timeout but should be fixed in the future
m = Qemu.QemuSSH(qm, timeout=100)

stdout, _ = m.check_exec('lscpu')
output = stdout.read().decode('utf-8')
Expand Down

0 comments on commit b8bf780

Please sign in to comment.