libreoffice-online/cypress_test/run_repeatedly.sh
Tamás Zolnai efdda663e4 cypress: rename run_iteratively.sh -> run_repeatedly.sh.
Signed-off-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Change-Id: Ida3f90fb01893c13de2086cf6ba0ec95c67a3bef
2021-02-04 17:45:16 +01:00

21 lines
377 B
Bash
Executable file

#!/bin/bash
if [ "$#" -ne 2 ]; then
echo "Illegal number of parameters"
echo "Usage: ./run_iteratively <test_type> <test_suite>"
echo "e.g: ./run_iteratively mobile writer/shape_properties_spec.js"
exit 1
fi
loop_count=10
command="make check-"$1" spec="$2
i=0
while $command
do
if [ $i -ge $loop_count ]
then
break
fi
i=$((i+1))
done