mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
In the console expect script, "send_error" will send a message to standard error. Current use of this script redirects only standard output into a pipeline. This causes the error messages to sometimes appear hidden in the middle of the test logs. Redirect also standard error to clearly show when a test has timed out or hit EOF. Signed-off-by: Victor Lira <victorm.lira@amd.com> Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
28 lines
494 B
Bash
Executable File
28 lines
494 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -ex -o pipefail
|
|
|
|
serial_log="$(pwd)/smoke.serial"
|
|
|
|
# machine type from first arg passed directly to qemu -M
|
|
machine=$1
|
|
|
|
# Run the test
|
|
rm -f ${serial_log}
|
|
|
|
export TEST_CMD="qemu-system-ppc64 \
|
|
-bios skiboot.lid \
|
|
-M $machine \
|
|
-m 2g \
|
|
-smp 1 \
|
|
-vga none \
|
|
-monitor none \
|
|
-nographic \
|
|
-serial stdio \
|
|
-kernel binaries/xen"
|
|
|
|
export TEST_LOG="${serial_log}"
|
|
export PASSED="Hello, ppc64le!"
|
|
|
|
./automation/scripts/console.exp |& sed 's/\r\+$//'
|