Skip to content

Commit 3a8bebd

Browse files
authored
GHA: Display output when a sanitizer test fails (#151268)
Modify GitHub Action "Reusable Sanitizer" to display output when a test fails: pass -W option.
1 parent 7b6e989 commit 3a8bebd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/reusable-san.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,12 @@ jobs:
8989
./python -m test
9090
${{ inputs.sanitizer == 'TSan' && '--tsan' || '' }}
9191
${{ inputs.sanitizer == 'UBSan' && '-x test_capi -x test_faulthandler' || '' }}
92-
-j4
92+
-j4 -W
9393
- name: Parallel tests
9494
if: >-
9595
inputs.sanitizer == 'TSan'
9696
&& fromJSON(inputs.free-threading)
97-
run: ./python -m test --tsan-parallel --parallel-threads=4 -j4
97+
run: ./python -m test --tsan-parallel --parallel-threads=4 -j4 -W
9898
- name: Display logs
9999
if: always()
100100
run: find "${GITHUB_WORKSPACE}" -name 'san_log.*' | xargs head -n 1000

0 commit comments

Comments
 (0)