mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
It appears as sometimes it takes more time for Xen even start booting, mostly due to firmware and fetching large boot files by grub. In some jobs the current timeout is pretty close to the actual time needed, and sometimes (rarely for now) test fails due to timeout expiring in the middle of dom0 booting. This will be happening more often if the initramfs will grow (and with more complex tests). This has been observed on some dom0pvh-hvm jobs, at least on runners hw3 and hw11. Switch to using expect (console.exp) for more robust test output handling. This allows waiting separately for Xen starting to boot and then for the test to complete. For now, set both of those to 120s, which pessimistically bumps timeout for the whole test to 240s (from 120s). Add S3 handling to console.exp via SUSPEND_MSG + WAKEUP_CMD. Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>