From: Michal Nowak Date: Wed, 19 May 2021 10:33:16 +0000 (+0200) Subject: Replace seq command with POSIX-compliant shell code X-Git-Tag: v9.17.14~41^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a08487ec3d6e47f498bd27fbc0828019d3a7dfc7;p=thirdparty%2Fbind9.git Replace seq command with POSIX-compliant shell code 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. --- diff --git a/bin/tests/system/views/tests.sh b/bin/tests/system/views/tests.sh index bb721c4c679..6f012e4b65b 100644 --- a/bin/tests/system/views/tests.sh +++ b/bin/tests/system/views/tests.sh @@ -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"