Skip to content

Commit 2351808

Browse files
author
Nig3l
committed
Fix calling rez test with empty test name run all tests
Signed-off-by: Nig3l <nig3lpro@gmail.com>
1 parent a2abe1a commit 2351808

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/rez/package_test.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,12 @@ def find_requested_test_names(self, requested_tests):
213213
run_on = ["default"] if not requested_tests else None
214214
pkg_test_names = self.get_test_names(run_on=run_on)
215215
requested_test_names = set()
216+
217+
if not requested_tests:
218+
# if no tests are explicitly specified, then return all tests
219+
# found in the package
220+
return pkg_test_names
221+
216222
for requested_test in requested_tests:
217223
requested_test_names.update(set(fnmatch.filter(pkg_test_names, requested_test)))
218224
return requested_test_names

0 commit comments

Comments
 (0)