Skip to content

Commit a36e60e

Browse files
committed
fix(ci): detect riscv64 system test failures by checking output
The riscv64 system test step only checked the cmake exit code, which is always 0 even when individual tests fail inside QEMU. Align with the aarch64 approach: capture output to file, grep for "Failed: 0" to determine pass/fail. Signed-off-by: Niu Zhihong <zhihong@nzhnb.com>
1 parent 6873c05 commit a36e60e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/workflow.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ jobs:
5353
run: |
5454
for i in $(seq 1 $SYSTEM_TEST_RUNS); do
5555
echo "=== riscv64 System Test Run $i/$SYSTEM_TEST_RUNS ==="
56-
if ! timeout 300 cmake --build build_riscv64 --target system_test_run; then
56+
timeout 300 cmake --build build_riscv64 --target system_test_run > /tmp/st_out_$i.txt 2>&1 || true
57+
cat /tmp/st_out_$i.txt
58+
if ! grep -q "Failed: 0" /tmp/st_out_$i.txt; then
5759
echo "riscv64 system test run $i/$SYSTEM_TEST_RUNS FAILED"
5860
exit 1
5961
fi

0 commit comments

Comments
 (0)