Skip to content

Commit 695f61c

Browse files
committed
test.py: only use generated scripts in the current test directory
1 parent 8767d7f commit 695f61c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/integration/tests/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ 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-
script_paths = non_gen_script_paths | generated_scripts
33+
gen_script_paths = { path for path in generated_scripts if path.is_relative_to(directory) }
34+
script_paths = non_gen_script_paths | gen_script_paths
3435
self.scripts = { str(script.relative_to(directory)) for script in script_paths }
3536
self.dir = str(directory)
3637
self.conf_file = str(directory / CONF_YML)

0 commit comments

Comments
 (0)