Files
xen/automation/scripts/qemu-smoke-ppc64le.sh
Victor Lira a406195c15 automation: call expect script with redirected standard error
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>
2025-09-03 17:20:05 -07:00

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\+$//'