Skip to content

Commit

Permalink
updated run to handle no common base.
Browse files Browse the repository at this point in the history
  • Loading branch information
smythi93 committed Jul 27, 2024
1 parent 7b20d5b commit deea214
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/sflkit/runners/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,14 @@ def _normalize_paths(
base = self._common_base(directory, tests)
if base is None and root_dir:
base = self._common_base(root_dir, tests)
if base is not None:
if base is None and root_dir is not None:
result = []
for r in tests:
path, test = r.split("::", 1)
result.append(
str((root_dir / path).relative_to(directory)) + "::" + test
)
elif base is not None:
result = []
for r in tests:
path, test = r.split("::", 1)
Expand Down

0 comments on commit deea214

Please sign in to comment.