<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/59605>59605</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
llvm-lit --filter-out doesn’t filter test directory
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
FlashSheridan
</td>
</tr>
</table>
<pre>
### Actual Result
The following command shouldn’t run anything but does:
```build/bin/llvm-lit --filter-out ".*test.*" llvm/test/tools/llvm-objdump/AMDGPU/elf-disassemble-symbolize-operands.yaml```
```-- Testing: 1 tests, 1 workers --```
```FAIL: LLVM :: tools/llvm-objdump/AMDGPU/elf-disassemble-symbolize-operands.yaml (1 of 1)…```
### Expected Result
A similar command filtering lower down filters everything as expected:
```build/bin/llvm-lit --filter-out ".*tools.*" llvm/test/tools/llvm-objdump/AMDGPU/elf-disassemble-symbolize-operands.yaml```
```error: filter did not match any tests (of 1 discovered). Use '--allow-empty-runs' to suppress this error.```
### Configuration
lit 15.0.4dev, 5c68a1cb1231 (HEAD, tag: llvmorg-15.0.4), MacOS 12.6.1 21G217 on M1 Max
A search suggests that the tests for this option only test simple expressions:
[https://cs.github.com/?scopeName=All+repos&scope=&q=%22--filter-out%22+repo%3Allvm%2Fllvm-project](https://cs.github.com/?scopeName=All+repos&scope=&q=%22--filter-out%22+repo%3Allvm%2Fllvm-project).
An issue for lit.py seems to use a glob rather than a regular expression:
https://github.com/llvm/llvm-project/issues/59352.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzEVU-PpLYT_TTuSwmEi4YeDhyY6WF_P2kmibK7uRtcgDcGE9vMbOfTRwbSOz1KTlklErKlwn9evffKJZxT_URUsuyeZeeDWPxgbFlr4YaPA1klxXRojLyUDNPtg6r1i9DwM7lFe5acWVJ9Ggg6o7V5VVMPrRlHMUlwg1m0nNgjsruEFYUHu0wgposfwrJm8SANOZ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