Skip to content

Commit 876296e

Browse files
[lit] Allow retries for readfile tests (#160600)
This patch allows for two retry attempts for the readfile tests. This is intended as a stop-gap until I have time to do proper investigation into why exactly the tests are failing.
1 parent 7813da3 commit 876296e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

llvm/utils/lit/tests/shtest-readfile-external.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## Tests the readfile substitution.
22

3+
# TODO(boomanaiden154): This sometimes fails, possibly due to buffers not being flushed.
4+
# ALLOW_RETRIES: 2
5+
36
# UNSUPPORTED: system-windows
47
# RUN: env LIT_USE_INTERNAL_SHELL=0 not %{lit} -a -v %{inputs}/shtest-readfile | FileCheck -match-full-lines -DTEMP_PATH=%S/Inputs/shtest-readfile/Output %s
58

llvm/utils/lit/tests/shtest-readfile.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
## Tests the readfile substitution.
22

3+
# TODO(boomanaiden154): This sometimes fails, possibly due to buffers not being flushed.
4+
# ALLOW_RETRIES: 2
5+
36
# RUN: env LIT_USE_INTERNAL_SHELL=1 not %{lit} -a -v %{inputs}/shtest-readfile | FileCheck -match-full-lines -DTEMP_PATH=%S%{fs-sep}Inputs%{fs-sep}shtest-readfile%{fs-sep}Output %s
47

58
# CHECK: -- Testing: 4 tests{{.*}}

0 commit comments

Comments
 (0)