mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-24 04:08:57 -04:00
[rt46602] Assign default values to variables set by command line options and consistently treat them as integers
(cherry picked from commit fe51c34df3)
This commit is contained in:
parent
f47ed5ceb0
commit
3752edb28e
2 changed files with 6 additions and 2 deletions
|
|
@ -19,6 +19,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 ;;
|
||||
|
|
@ -35,7 +37,7 @@ fi
|
|||
systest=$1
|
||||
shift
|
||||
|
||||
if [ "$runall" = "" ]; then
|
||||
if [ $runall -eq 0 ]; then
|
||||
rm -f $systest/test.output
|
||||
fi
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue