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:
parent
c75507a31f
commit
00bf930c33
1 changed files with 10 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue