From 82aa7b4bb81bda2a8391e1f131db4b7dc6a71b98 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mochol=C3=AD?= Date: Fri, 28 Apr 2023 11:13:53 +0200 Subject: [PATCH] ci: add current & total count to standalone test output (#17511) --- tests/tests_pytorch/run_standalone_tests.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/tests_pytorch/run_standalone_tests.sh b/tests/tests_pytorch/run_standalone_tests.sh index e038ddab5c..c432bd723f 100644 --- a/tests/tests_pytorch/run_standalone_tests.sh +++ b/tests/tests_pytorch/run_standalone_tests.sh @@ -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