From e23f7b312dab0f7a3cc547b3759bff1a7647ba6f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Thu, 6 Jul 2017 14:31:54 +0200 Subject: [PATCH] Make test script more portable seq isn't POSIX and isn't present by default on BSDs --- tests/data_files/dir-maxpath/long.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/data_files/dir-maxpath/long.sh b/tests/data_files/dir-maxpath/long.sh index 2626e723e..22f3bf548 100755 --- a/tests/data_files/dir-maxpath/long.sh +++ b/tests/data_files/dir-maxpath/long.sh @@ -16,7 +16,8 @@ $OPENSSL req -new -x509 -subj "/C=UK/O=mbed TLS/CN=CA00" $OPT \ cp 00.crt c00.pem # generate long chain -for i in $(seq 1 $NB); do +i=1 +while [ $i -le $NB ]; do UP=$( printf "%02d" $((i-1)) ) ME=$( printf "%02d" $i ) @@ -30,4 +31,5 @@ for i in $(seq 1 $NB); do cat ${ME}.crt c${UP}.pem > c${ME}.pem rm ${ME}.csr + i=$((i+1)) done