mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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:
1 parent
a6eb429d51
commit
1cdf180308
1 file changed
+1
-1
@@ -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"
|
||||
|
||||