[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen staging] CI: Fix status check for tools/tests
commit 1cdf18030814cb0ea45dce54bc3d23fae6818583 Author: Anthony PERARD <anthony.perard@xxxxxxxxxx> AuthorDate: Mon Jun 2 11:19:22 2025 +0200 Commit: Anthony PERARD <anthony.perard@xxxxxxxxxx> CommitDate: Fri Jun 6 12:06:34 2025 +0200 CI: Fix status check for tools/tests Without "pipefail", $? have the exit value of `tee`, which should always be 0. But instead of using "pipefail", do collect the value of from the test with $PIPESTATUS. Signed-off-by: Anthony PERARD <anthony.perard@xxxxxxxxxx> Reviewed-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> Acked-by: Stefano Stabellini <sstabellini@xxxxxxxxxx> --- automation/scripts/run-tools-tests | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automation/scripts/run-tools-tests b/automation/scripts/run-tools-tests index 18687f61a3..cbdd79f6db 100755 --- a/automation/scripts/run-tools-tests +++ b/automation/scripts/run-tools-tests @@ -20,7 +20,7 @@ for f in "$1"/*; do echo "Running $f" printf ' <testcase name="%s">\n' "$f" >> "$xml_out" "$f" 2>&1 | tee /tmp/out - ret=$? + ret=${PIPESTATUS[0]} if [ "$ret" -ne 0 ]; then echo "FAILED: $f" failed+=" $f" -- generated by git-patchbot for /home/xen/git/xen.git#staging
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |