Commit 02ea1c2
authored
Fix lit test cfg on windows. (#39)
Without this `str()` the test would fail with a stacktrace like this:
```shell
D:\DevLLVM\repos\mlir-tutorial\tests>lit -v .\ctlz_simple.mlir
-- Testing: 1 tests, 1 workers --
UNRESOLVED: mlir_tutorial :: ctlz_simple.mlir (1 of 1)
******************** TEST 'mlir_tutorial :: ctlz_simple.mlir' FAILED ********************
Exception during script execution:
Traceback (most recent call last):
File "C:\Wares\python310\lib\site-packages\lit\worker.py", line 76, in _execute_test_handle_errors
result = test.config.test_format.execute(test, lit_config)
File "C:\Wares\python310\lib\site-packages\lit\formats\shtest.py", line 29, in execute
return lit.TestRunner.executeShTest(
File "C:\Wares\python310\lib\site-packages\lit\TestRunner.py", line 2120, in executeShTest
script = applySubstitutions(
File "C:\Wares\python310\lib\site-packages\lit\TestRunner.py", line 1674, in applySubstitutions
output.append(unescapePercents(process(line)))
File "C:\Wares\python310\lib\site-packages\lit\TestRunner.py", line 1631, in processLine
b = b.replace("\\", "\\\\")
TypeError: Path.replace() takes 2 positional arguments but 3 were given
********************
********************
Unresolved Tests (1):
mlir_tutorial :: ctlz_simple.mlir
Testing Time: 0.16s
Unresolved: 1
```1 parent cd4964f commit 02ea1c2
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
0 commit comments