Commit fd272bf4 authored by Evan Hunt's avatar Evan Hunt

Do not destroy systests.output if there are no test.output files

(cherry picked from commit 38940619)
parent 4f669413
......@@ -40,9 +40,14 @@ while getopts "n" flag; do
esac
done
cat */test.output > systests.output 2> /dev/null
if [ $keepfile -eq 0 ]; then
rm -f */test.output
if [ `ls */test.output 2> /dev/null | wc -l` -eq 0 ]; then
echowarn "I:No 'test.output' files were found."
echowarn "I:Printing summary from pre-existing 'systests.output'."
else
cat */test.output > systests.output
if [ $keepfile -eq 0 ]; then
rm -f */test.output
fi
fi
status=0
......
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