Skip to content

Commit

Permalink
Merge pull request #189 from launchableinc/ENG-50-fix-check-logic
Browse files Browse the repository at this point in the history
[ENG-50] fix check logic
  • Loading branch information
Konboi authored Apr 12, 2021
2 parents 28b518a + 2cbf0ab commit 84b5bc4
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions launchable/commands/subset.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,12 +116,10 @@ def separator(self, s: str):
self._separator = s

def test_path(self, path: TestPathLike):
if isinstance(path, str) and any(s in path for s in ('/**', '**/', '*.', "/*")):
if isinstance(path, str) and any(s in path for s in ('*', "?")):
for i in glob.iglob(path, recursive=True):
if os.path.isdir(i):
continue

self.test_path(i)
if os.path.isfile(i):
self.test_paths.append(self.to_test_path(i))
return

"""register one test"""
Expand Down

0 comments on commit 84b5bc4

Please sign in to comment.