Skip to content

Commit fbbfb86

Browse files
Keep test output in job trace (no per-test log files)
1 parent ab2a107 commit fbbfb86

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

qa/L0_pytorch_unittest/test.sh

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,9 @@ function run_test() {
5959
eval "${env_prefix} python3 -m pytest --tb=auto --junitxml=$XML_LOG_DIR/${xml_name} ${test_path}" \
6060
|| test_fail "$fail_label"
6161
else
62-
# Multi GPU: run in background on assigned GPU, capture output per-test
62+
# Multi GPU: run in background on assigned GPU
6363
(
6464
eval "CUDA_VISIBLE_DEVICES=${GPU_LIST[$gpu_id]} ${env_prefix} python3 -m pytest --tb=auto --junitxml=$XML_LOG_DIR/${xml_name} ${test_path}" \
65-
> "$XML_LOG_DIR/${xml_name%.xml}.log" 2>&1 \
6665
|| test_fail "$fail_label"
6766
) &
6867
fi
@@ -122,14 +121,6 @@ if [ "$NUM_GPUS" -gt 1 ]; then
122121
wait
123122
fi
124123

125-
# ── Display per-test logs from parallel runs ────────────────────────────────
126-
127-
if [ "$NUM_GPUS" -gt 1 ]; then
128-
for logfile in "$XML_LOG_DIR"/*.log; do
129-
[ -f "$logfile" ] && echo "=== $(basename "$logfile") ===" && cat "$logfile"
130-
done
131-
fi
132-
133124
# ── Report results ──────────────────────────────────────────────────────────
134125

135126
if [ -s "$FAIL_DIR/failures" ]; then

0 commit comments

Comments
 (0)