]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[rt46602] Assign default values to variables set by command line options and consiste...
authorMichał Kępień <michal@isc.org>
Thu, 25 Jan 2018 11:13:19 +0000 (12:13 +0100)
committerEvan Hunt <each@isc.org>
Sun, 25 Feb 2018 03:53:30 +0000 (19:53 -0800)
(cherry picked from commit fe51c34df3c137dcd29650599158123536cb55f2)
(cherry picked from commit 3752edb28ea2facab25da4db747c7d0fdcb0ffc2)

bin/tests/system/clean.sh
bin/tests/system/testsummary.sh

index 4c1704b62b4dfbcb5e77b5162ca40f92d7b709e2..91b3ac8cf3455710b634d4db904ea6870c976ce5 100644 (file)
@@ -27,6 +27,8 @@ SYSTEMTESTTOP=.
 # the tests will call "testsummary.sh", which will concatenate all test output
 # files into a single systests.output.
 
+runall=0
+
 while getopts "r" flag; do
     case $flag in
        r) runall=1 ;;
@@ -43,7 +45,7 @@ fi
 systest=$1
 shift
 
-if [ "$runall" = "" ]; then
+if [ $runall -eq 0 ]; then
     rm -f $systest/test.output
 fi
 
index 1c2a0c0251cb04c04976318947c4b11c201f4aa3..45beed8ab2680209da4b6f47308bbe32e1dcf563 100644 (file)
@@ -24,6 +24,8 @@
 SYSTEMTESTTOP=.
 . $SYSTEMTESTTOP/conf.sh
 
+keepfile=0
+
 while getopts "n" flag; do
     case $flag in
        n) keepfile=1 ;;
@@ -32,7 +34,7 @@ while getopts "n" flag; do
 done
 
 cat */test.output > systests.output 2> /dev/null
-if [ "$keepfile" = "" ]; then
+if [ $keepfile -eq 0 ]; then
     rm -f */test.output
 fi