]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Replace seq command with POSIX-compliant shell code
authorMichal Nowak <mnowak@isc.org>
Wed, 19 May 2021 10:33:16 +0000 (12:33 +0200)
committerMichal Nowak <mnowak@isc.org>
Wed, 19 May 2021 12:04:48 +0000 (14:04 +0200)
The seq command is not defined in the POSIX standard and is missing on
OpenBSD. Given that the system test code is meant to be POSIX-compliant
replace it with a shell construct.

bin/tests/system/views/tests.sh

index bb721c4c679c9d393cca5c24bdac062502f63b21..6f012e4b65bc20619cdd51d10d5893efb1c61b58 100644 (file)
@@ -137,7 +137,8 @@ echo_i "verifying adding of multiple inline zones followed by reconfiguration wo
 [ ! -f ns2/zones.conf ] && touch ns2/zones.conf
 copy_setports ns2/named3.conf.in ns2/named.conf
 
-for i in `seq 1 50`; do
+i=1
+while [ $i -lt 50 ]; do
        ret=0
        zone_name=`printf "example%03d.com" $i`
 
@@ -171,6 +172,7 @@ EOF
     $RNDCCMD 10.53.0.2 reconfig || ret=1
     if [ $ret != 0 ]; then echo_i "failed"; break; fi
 done # end for #
+       i=$((i + 1))
 status=`expr $status + $ret`
 
 echo_i "exit status: $status"