Skip to content

Commit

Permalink
fix check logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Konboi committed Apr 9, 2021
1 parent a3a0945 commit 2cbf0ab
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 2cbf0ab

Please sign in to comment.