1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

tests: show log output for failed tests

This commit is contained in:
Steffen Vogel 2017-08-31 17:25:06 +02:00
parent c75507a31f
commit 00bf930c33

View file

@ -83,10 +83,18 @@ for TEST in ${TESTS}; do
# Run test
if (( ${VERBOSE} == 0 )); then
timeout ${TIMEOUT} ${TEST} &> ${LOGDIR}/${TESTNAME}.log
RC=$?
else
timeout ${TIMEOUT} ${TEST}
timeout ${TIMEOUT} ${TEST} | tee ${LOGDIR}/${TESTNAME}.log
RC=${PIPESTATUS[0]}
fi
# Show full log in case of an error
if (( ${VERBOSE} == 0 )); then
if (( $RC != 99 )) || (( $RC != 0 )); then
cat ${LOGDIR}/${TESTNAME}.log
fi
fi
RC=$?
case $RC in
0)