Skip to content

Commit

Permalink
Try parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
wtgodbe committed Apr 19, 2018
1 parent 5f4c150 commit 383927e
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions runInLoop.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,22 @@

count=0

while :
run_test_in_loop()
{
while :
do
echo "In loop $count"
echo "$1/dotnet xunit.console.netcore.exe $2 -method $3"
$1/dotnet xunit.console.netcore.exe $2 -method $3
if [[ $? != 0 ]]; then exit; fi
((count++))
done
}

for i in $(seq 1 100)
do
echo "In loop $count"
echo "$1/dotnet xunit.console.netcore.exe $2 -method $3"
$1/dotnet xunit.console.netcore.exe $2 -method $3
if [[ $? != 0 ]]; then exit; fi
((count++))
run_test_in_loop $1 $2 $3
done
wait

exit 0

0 comments on commit 383927e

Please sign in to comment.