Commit b865c6f
committed
Guard lit_config.quiet for lit versions that removed it.
test/lit.cfg reads lit_config.quiet directly, but upstream lit has
dropped that attribute from LitConfig: --quiet survives only as a
command line flag gating the result summary, and LitConfig.note() is now
unconditional. Where the attribute is gone, parsing the config raises
AttributeError, so the suite fails to load and no test is discovered at
all.
CI does not hit this yet, because it drives the suite with the lit
package from PyPI -- currently 18.1.8, which still has the attribute --
and that version is independent of the clang-runtime a given row builds
against. It does bite when running the suite with the in-tree llvm-lit
of a recent LLVM, and it will bite CI once "pip install lit" resolves to
a version that dropped it. Read the flag defensively so it works either
way.1 parent 73fff93 commit b865c6f
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
246 | 246 | | |
247 | 247 | | |
248 | 248 | | |
249 | | - | |
| 249 | + | |
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
| |||
0 commit comments