Don't fork unnecessarily in CI
The test runner script was always forking, even if it only had one
iteration it needed to run. Instead, we can fork only if we're running
everything.
@@ -99,10 +99,16 @@ while read line ; do
cd $tmpdir
checkout $line
cd $parser_dir
+ if [ -z "$1" ]; then
validate $line &
pids+=($!)
+ else
+ validate $line
+ fi
done <<<"$repos"
+if [ -z "$1" ]; then
for pid in "${pids[@]}" ; do
wait $pid
done
+fi
