]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[rt46602] Export environment variables in a portable manner
authorMichał Kępień <michal@isc.org>
Mon, 29 Jan 2018 11:33:33 +0000 (12:33 +0100)
committerStephen Morris <stephen@isc.org>
Fri, 16 Feb 2018 16:14:40 +0000 (16:14 +0000)
bin/tests/system/run.sh
bin/tests/system/runall.sh

index 9a7e472a42bd4c8f78d8a97b3b32fc8c3d1f1a5d..38ee8623f070cdc8c53bb447703d0521ce66de37 100644 (file)
@@ -67,20 +67,33 @@ fi
 # ports.  Since the lowest numbered port (specified in the command line)
 # will usually be a multiple of 10, the names are chosen so that if this is
 # true, the last digit of EXTRAPORTn is "n".
-export PORT=$baseport
-export EXTRAPORT1=`expr $baseport + 1`
-export EXTRAPORT2=`expr $baseport + 2`
-export EXTRAPORT3=`expr $baseport + 3`
-export EXTRAPORT4=`expr $baseport + 4`
-export EXTRAPORT5=`expr $baseport + 5`
-export EXTRAPORT6=`expr $baseport + 6`
-export EXTRAPORT7=`expr $baseport + 7`
-export EXTRAPORT8=`expr $baseport + 8`
-export CONTROLPORT=`expr $baseport + 9`
-
-export LOWPORT=$baseport
-export HIGHPORT=`expr $baseport + $numport - 1`
-
+PORT=$baseport
+EXTRAPORT1=`expr $baseport + 1`
+EXTRAPORT2=`expr $baseport + 2`
+EXTRAPORT3=`expr $baseport + 3`
+EXTRAPORT4=`expr $baseport + 4`
+EXTRAPORT5=`expr $baseport + 5`
+EXTRAPORT6=`expr $baseport + 6`
+EXTRAPORT7=`expr $baseport + 7`
+EXTRAPORT8=`expr $baseport + 8`
+CONTROLPORT=`expr $baseport + 9`
+
+LOWPORT=$baseport
+HIGHPORT=`expr $baseport + $numport - 1`
+
+export PORT
+export EXTRAPORT1
+export EXTRAPORT2
+export EXTRAPORT3
+export EXTRAPORT4
+export EXTRAPORT5
+export EXTRAPORT6
+export EXTRAPORT7
+export EXTRAPORT8
+export CONTROLPORT
+
+export LOWPORT
+export HIGHPORT
 
 echostart "S:$systest:`date`"
 echoinfo  "T:$systest:1:A"
index 95ebd292202e7b68e98add126329a91dc90fd17f..f5f9b87db386bab333f9077979356fb092ffca5a 100644 (file)
@@ -22,9 +22,11 @@ SYSTEMTESTTOP=.
 
 usage="Usage: ./runall.sh [-n] [numprocesses]"
 
+NOCLEAN=""
+
 while getopts "n" flag; do
     case "$flag" in
-       n) export NOCLEAN="-n" ;;
+       n) NOCLEAN="-n" ;;
     esac
 done
 shift `expr $OPTIND - 1`
@@ -44,6 +46,7 @@ else
     exit 1
 fi
 
+export NOCLEAN
 make -j $numproc check
 
 exit $?