Move some env_parallel code into the else branch (#1432)

Co-authored-by: Gulshan Singh <gsgx@google.com>
pull/1425/head^2
Gulshan Singh 3 years ago committed by GitHub
parent 5e47e344a7
commit 1bd4e4a482
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -147,6 +147,13 @@ parse_output_file() {
fi
}
start=$(date +%s)
if [ $SERIAL -eq 1 ]; then
for t in "${TESTS_LIST[@]}"; do
run_test "$t"
done
else
JOBLOG_PATH="$(mktemp)"
echo ""
echo -n "Running tests in parallel and using a joblog in $JOBLOG_PATH"
@ -159,13 +166,6 @@ fi
. $(which env_parallel.bash)
start=$(date +%s)
if [ $SERIAL -eq 1 ]; then
for t in "${TESTS_LIST[@]}"; do
run_test "$t"
done
else
env_parallel --output-as-files --joblog $JOBLOG_PATH run_test ::: "${TESTS_LIST[@]}" | env_parallel parse_output_file {}
fi

Loading…
Cancel
Save