]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[rt46602] Simplify the cleanup code
authorStephen Morris <stephen@isc.org>
Thu, 21 Dec 2017 18:14:34 +0000 (18:14 +0000)
committerStephen Morris <stephen@isc.org>
Fri, 16 Feb 2018 16:09:48 +0000 (16:09 +0000)
bin/tests/system/testsummary.sh

index 0ed714ccd4276ef60eec37175befe54200fb7413..1c2a0c0251cb04c04976318947c4b11c201f4aa3 100644 (file)
@@ -31,17 +31,10 @@ while getopts "n" flag; do
     esac
 done
 
-rm -f systests.output
-touch systests.output
-for directory in $SUBDIRS ; do
-    if [ -e $directory/test.output ]; then
-        cat $directory/test.output >> systests.output
-       if [ "$keepfile" = "" ]; then
-           rm $directory/test.output
-       fi
-    fi
-done
-
+cat */test.output > systests.output 2> /dev/null
+if [ "$keepfile" = "" ]; then
+    rm -f */test.output
+fi
 
 $PERL testsock.pl || {
     cat <<EOF