Skip to content

Commit

Permalink
Merge pull request #160 from launchableinc/ST-824
Browse files Browse the repository at this point in the history
support when base has magic
  • Loading branch information
Konboi authored Mar 8, 2021
2 parents d884000 + d334557 commit 4cfdbb6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions launchable/commands/subset.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,10 @@ def default_path_builder(file_name):
return file_name
path_builder = default_path_builder

for t in glob.iglob(join(base, pattern), recursive=True):
if path_builder:
path = path_builder(t[len(base)+1:])
for b in glob.iglob(base):
for t in glob.iglob(join(b, pattern), recursive=True):
if path_builder:
path = path_builder(t[len(b)+1:])
if path:
self.test_paths.append(self.to_test_path(path))

Expand Down

0 comments on commit 4cfdbb6

Please sign in to comment.