Commit 38940619 authored by Evan Hunt's avatar Evan Hunt Committed by Michał Kępień

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

parent 642e20db
Pipeline #420 passed with stages
in 11 minutes and 24 seconds
......@@ -35,9 +35,14 @@ while getopts "n" flag; do
esac
done
cat */test.output > systests.output 2> /dev/null
if [ $keepfile -eq 0 ]; then
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