From: Aditya Mandaleeka Date: Fri, 19 Aug 2016 02:35:45 +0000 (-0700) Subject: Don't create dumpling list file unless there are actually dumps. X-Git-Tag: submit/tizen/20210909.063632~11030^2~9623^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=faf118de6254baaf6d99e03f37ec560669bfd5d0;p=platform%2Fupstream%2Fdotnet%2Fruntime.git Don't create dumpling list file unless there are actually dumps. Commit migrated from https://github.com/dotnet/coreclr/commit/3dedd1a9ad5a99be59d7e4cdb5aec75b4cfafa40 --- diff --git a/src/coreclr/tests/runtest.sh b/src/coreclr/tests/runtest.sh index 9368663..a55ee3c 100755 --- a/src/coreclr/tests/runtest.sh +++ b/src/coreclr/tests/runtest.sh @@ -120,9 +120,8 @@ esac dumplingsListPath="$PWD/dumplings.txt" if [ -f "$dumplingsListPath" ]; then rm "$dumplingsListPath" -fi +fi -touch $dumplingsListPath find . -type f -name "local_dumplings.txt" -exec rm {} \; function xunit_output_begin { @@ -1158,7 +1157,11 @@ print_results echo "constructing $dumplingsListPath" find . -type f -name "local_dumplings.txt" -exec cat {} \; > $dumplingsListPath -cat $dumplingsListPath +if [ -s $dumplingsListPath ]; then + cat $dumplingsListPath +else + rm $dumplingsListPath +fi time_end=$(date +"%s") time_diff=$(($time_end-$time_start))