ci: add current & total count to standalone test output (#17511)

This commit is contained in:
Carlos Mocholí 2023-04-28 11:13:53 +02:00 committed by GitHub
parent a0dd8087d8
commit 82aa7b4bb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -63,14 +63,15 @@ trap show_batched_output EXIT # show the output on exit
for i in "${!parametrizations_arr[@]}"; do
parametrization=${parametrizations_arr[$i]}
prefix="$((i+1))/${#parametrizations_arr[@]}"
# check blocklist
if [[ "${parametrization}" == *"test_pytorch_profiler_nested_emit_nvtx"* ]]; then
echo "Skipping $parametrization"
echo "$prefix: Skipping $parametrization"
report+="Skipped\t$parametrization\n"
# do not continue the loop because we might need to wait for batched jobs
else
echo "Running $parametrization"
echo "$prefix: Running $parametrization"
# execute the test in the background
# redirect to a log file that buffers test output. since the tests will run in the background, we cannot let them
# output to std{out,err} because the outputs would be garbled together