diff --git a/bin/tests/system/testsummary.sh b/bin/tests/system/testsummary.sh index 9d6c2f3939126eff3a703f752cd81d48f5984150..06c356671a64836d27139fe940b08795f76d2df0 100644 --- a/bin/tests/system/testsummary.sh +++ b/bin/tests/system/testsummary.sh @@ -35,9 +35,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