Add Windows integration tests showing that subst is handled inconsistently

This commit is contained in:
Jeroen Ketema
2026-06-29 17:03:37 +02:00
parent 3410f39b3c
commit daf97f7139
32 changed files with 147 additions and 0 deletions

View File

@@ -0,0 +1 @@
print(0)

View File

@@ -0,0 +1 @@
| code/main.py:0:0:0:0 | code/main.py | |

View File

@@ -0,0 +1,5 @@
import python
from File f, string relative
where if exists(f.getRelativePath()) then relative = "relative" else relative = ""
select f, relative

View File

@@ -0,0 +1,7 @@
import runs_on
@runs_on.windows
def test(codeql, python, cwd, subst_drive):
drive = subst_drive(cwd / "code")
codeql.database.create(source_root=drive)