projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Restore pipefail.
[bertos.git]
/
test
/
run_tests.sh
diff --git
a/test/run_tests.sh
b/test/run_tests.sh
index 14a6fb5e5aca732850a02de2fc045b268bddd32a..c33f00e2a3ed3d3cdc3a53ca60ca1bc42573f458 100755
(executable)
--- a/
test/run_tests.sh
+++ b/
test/run_tests.sh
@@
-94,21
+94,24
@@
for src in $TESTS; do
[ $VERBOSE -gt 0 ] && echo "Preparing $name..."
[ $VERBOSE -gt 4 ] && echo " $PREPARECMD"
[ $VERBOSE -gt 0 ] && echo "Preparing $name..."
[ $VERBOSE -gt 4 ] && echo " $PREPARECMD"
- if $PREPARECMD 2>&1 | tee >$buildout $testdir/$name.prep; then
+ if $PREPARECMD 2>&1 | tee
-a >
>$buildout $testdir/$name.prep; then
[ $VERBOSE -gt 0 ] && echo "Building $name..."
[ $VERBOSE -gt 4 ] && echo " $BUILDCMD"
[ $VERBOSE -gt 0 ] && echo "Building $name..."
[ $VERBOSE -gt 4 ] && echo " $BUILDCMD"
- if $BUILDCMD 2>&1 | tee >$buildout $testdir/$name.build; then
+ if $BUILDCMD 2>&1 | tee
-a >
>$buildout $testdir/$name.build; then
[ $VERBOSE -gt 0 ] && echo "Running $name..."
[ $VERBOSE -gt 0 ] && echo "Running $name..."
- if ! $exe 2>&1 | tee >$runout $testdir/$name.out; then
+ if ! $exe 2>&1 | tee
-a >
>$runout $testdir/$name.out; then
echo "FAILED [RUN]: $name"
echo "FAILED [RUN]: $name"
+ cat $testdir/$name.out
exit 2
fi
else
echo "FAILED [BUILD]: $name"
exit 2
fi
else
echo "FAILED [BUILD]: $name"
+ cat $testdir/$name.build
exit 3
fi
else
echo "FAILED [PREPARING]: $name"
exit 3
fi
else
echo "FAILED [PREPARING]: $name"
+ cat $testdir/$name.prep
exit 4
fi
done
exit 4
fi
done