From 631df5e837f2187b36b40513bfd6d500a115d88a Mon Sep 17 00:00:00 2001 From: alexmadison Date: Mon, 11 Apr 2022 17:00:28 +0200 Subject: [PATCH] idk ole did something --- test/repeat_unit.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/test/repeat_unit.sh b/test/repeat_unit.sh index 8ce12b6..58b78e2 100755 --- a/test/repeat_unit.sh +++ b/test/repeat_unit.sh @@ -56,24 +56,25 @@ cd "unit_tests" # run all test except single one is specified if [ ! -z $2 ]; then - $numberofruns = $2 + numberofruns=$2 fi if [ -z $1 ]; then for i in * do if [ -d $i -a -f $i/test.act ]; then - while [ $failed = 0 ] && [ $iteration < $numberofruns ] + while [ $failed = 0 ] && [ $iteration -lt $numberofruns ] do run_test $iteration + iteration=$iteration+1 done fi done else - - while [ $failed = 0 ] && [ $iteration < $numberofruns ] + while [ $failed -eq 0 ] && [ $iteration -lt $numberofruns ] do run_test $1 $iteration + iteration=$((iteration+1)) done fi