summaryrefslogtreecommitdiff
path: root/buildscripts/resmokelib
diff options
context:
space:
mode:
authorYves Duhem <yves.duhem@mongodb.com>2017-10-06 13:13:10 -0400
committerYves Duhem <yves.duhem@mongodb.com>2017-10-06 13:14:47 -0400
commit203c2103327b8ac24fcc7b1ebcaab2a359f4b7f8 (patch)
tree54f60d338bc180f277e69298c845c12b2c865579 /buildscripts/resmokelib
parent65d4cdd857305929e7341bf30c2fb72dc2641130 (diff)
downloadmongo-203c2103327b8ac24fcc7b1ebcaab2a359f4b7f8.tar.gz
SERVER-30922 Do not fail on non matching selector pattern
Diffstat (limited to 'buildscripts/resmokelib')
-rw-r--r--buildscripts/resmokelib/selector.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/buildscripts/resmokelib/selector.py b/buildscripts/resmokelib/selector.py
index 069d730c20c..3fff181c188 100644
--- a/buildscripts/resmokelib/selector.py
+++ b/buildscripts/resmokelib/selector.py
@@ -150,10 +150,7 @@ class _TestList(object):
expanded_tests = []
for test in tests:
if self._test_file_explorer.is_glob_pattern(test):
- expanded = list(self._test_file_explorer.iglob(test))
- if not expanded:
- raise ValueError("Pattern does not match any files: {}".format(test))
- expanded_tests.extend(expanded)
+ expanded_tests.extend(self._test_file_explorer.iglob(test))
else:
if not self._test_file_explorer.isfile(test):
raise ValueError("Unrecognized test file: {}".format(test))