From a08487ec3d6e47f498bd27fbc0828019d3a7dfc7 Mon Sep 17 00:00:00 2001 From: Michal Nowak Date: Wed, 19 May 2021 12:33:16 +0200 Subject: [PATCH] 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. --- bin/tests/system/views/tests.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/tests/system/views/tests.sh b/bin/tests/system/views/tests.sh index bb721c4c67..6f012e4b65 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"