Skip to content

Commit 4fdd206

Browse files
committed
test.py: only use generated scripts in the current test directory
1 parent 99e454d commit 4fdd206

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tests/integration/tests/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ def __init__(self, directory: Path, generated_scripts: set[Path]):
3030
# We only want scripts that have been generated by us now,
3131
# but non `*.gen*` scripts we can search for.
3232
non_gen_script_paths = { f for f in directory.iterdir() if f.suffix == ".sh" and ".gen" not in f.suffixes }
33+
gen_script_paths = { path for path in generated_scripts if path.is_relative_to(directory) }
3334
script_paths = non_gen_script_paths | generated_scripts
3435
self.scripts = { str(script.relative_to(directory)) for script in script_paths }
3536
self.dir = str(directory)

0 commit comments

Comments
 (0)