Skip to content

Commit bc73ca5

Browse files
committed
fixes
1 parent 63de5c0 commit bc73ca5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

llvm/test/lit.cfg.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,13 @@
1717
# name: The name of this test suite.
1818
config.name = "LLVM"
1919

20+
extra_substitutions = extra_substitutions = ([
21+
(r"\| not FileCheck .*", "| tee /dev/null"),
22+
(r"\| FileCheck .*", "| tee /dev/null")
23+
] if config.enable_profcheck else [])
24+
2025
# testFormat: The test format to use to interpret tests.
21-
config.test_format = lit.formats.ShTest(not llvm_config.use_lit_shell)
26+
config.test_format = lit.formats.ShTest(not llvm_config.use_lit_shell, extra_substitutions)
2227

2328
# suffixes: A list of file extensions to treat as test files. This is overriden
2429
# by individual lit.local.cfg files in the test subdirectories.

0 commit comments

Comments
 (0)