mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
The gitlab CI webpage seems to have issues displaying the \CR\CR\LF "\r\r\n"
sequence on the web interface used as line returns by the Linux kernel serial
output. This leads to the QEMU tests output looking like:
(XEN) Guest Loglevel: Nothing (Rate-limited: Errors and warnings)
(XEN) *** Serial input to DOM0 (type 'CTRL-a' three times to switch input)
(XEN) Freed 664kB init memory
mapping kernel into physical memory
about to get started...
qemu-system-x86_64: terminating on signal 15 from pid 52 (timeout)
This not helpful, so strip the CR characters from the output that goes to
stdout, leaving the output in the serial output file untouched.
All usages of `tee` are adjusted to strip CR from the output.
Fixes: 3030a73bf8 ('automation: add a QEMU based x86_64 Dom0/DomU test')
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
21 lines
286 B
Bash
Executable File
21 lines
286 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
# Run the test
|
|
rm -f smoke.serial
|
|
set +e
|
|
|
|
timeout -k 1 2 \
|
|
qemu-system-riscv64 \
|
|
-M virt \
|
|
-smp 1 \
|
|
-nographic \
|
|
-m 2g \
|
|
-kernel binaries/xen \
|
|
|& tee smoke.serial | sed 's/\r//'
|
|
|
|
set -e
|
|
(grep -q "All set up" smoke.serial) || exit 1
|
|
exit 0
|