Commit fe26118d authored by Niko Tyni's avatar Niko Tyni

autopkgtest/runner: save the exit code from failed tests

parent 09a8506f
......@@ -14,13 +14,19 @@ if [ -f "$SKIPLIST" ]; then
grep -v '^ *#' "$SKIPLIST" |grep -v '^ *$' > "$SKIPTMP"
fi
EXITCODE=0
for T in $(run-parts --list --regex '(^[a-z0-9.]+$)' ${TESTDIR} | \
grep -v -F -f "$SKIPTMP") ; do
if echo "$T" | grep -q '\.t$'
then
prove --norc -v "$T"
RET=$?
if [ $EXITCODE = 0 ]; then EXITCODE=$RET; fi
else
"$T"
RET=$?
if [ $EXITCODE = 0 ]; then EXITCODE=$RET; fi
fi
done
rm -f "$SKIPTMP"
exit $EXITCODE
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment