]> xenbits.xensource.com Git - xen.git/commit
CI: wait for Xen to start before waiting for test to complete
authorMarek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Fri, 11 Apr 2025 20:32:13 +0000 (22:32 +0200)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 11 Apr 2025 21:07:57 +0000 (22:07 +0100)
commit7c96a27e375d8d7cbbb5493ebef0e29f90bfd273
treee520cb2a9455a69edbca9f6d3104e32fad886e40
parent7bf777b42cade81d4f20f78cb85c4bc0f638de7b
CI: wait for Xen to start before waiting for test to complete

Add additional stage in console output parsing - wait for first message
from Xen. The message is defined via BOOT_MSG variable. This has two
effects:
- distinguishes failing Xen to load at all from later test failures
- resets timeout when Xen starts loading

The latter is especially relevant for hardware tests where firmware +
network boot may take some time before Xen starts booting. The two-stage
timeout is more robust solution than increasing the overall timeout.
The issue has been observed on some dom0pvh-hvm jobs, at least on
runners hw3 and hw11. This patch is a first stage before qubes-x86-64.sh
is switched to use expect in the next stage.

While at it, consistently use 'expect -re' for all matches. This
especially allows matching newlines ("\n"), which will become relevant
in the next patch. And document variables used in console.exp.

Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
automation/scripts/console.exp
automation/scripts/qemu-alpine-x86_64.sh
automation/scripts/qemu-smoke-dom0-arm32.sh
automation/scripts/qemu-smoke-dom0-arm64.sh
automation/scripts/qemu-smoke-dom0less-arm32.sh
automation/scripts/qemu-xtf-dom0less-arm64.sh
automation/scripts/xilinx-smoke-dom0-x86_64.sh
automation/scripts/xilinx-smoke-dom0less-arm64.sh