idk ole did something

This commit is contained in:
alexmadison 2022-04-11 17:00:28 +02:00
parent 19565e7303
commit 631df5e837
1 changed files with 5 additions and 4 deletions

View File

@ -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