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@vates.tech>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
This commit is contained in:
Anthony PERARD committed 2025-06-06 12:06:34 +02:00
1 parent a6eb429d51
commit 1cdf180308
1 file changed
+1 -1
+1 -1
View File
@@ -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"
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.