summaryrefslogtreecommitdiff
path: root/buildscripts/resmokelib
diff options
context:
space:
mode:
authorJonathan Abrahams <jonathan@mongodb.com>2017-12-13 16:21:44 -0500
committerJonathan Abrahams <jonathan@mongodb.com>2017-12-13 16:21:44 -0500
commit67e018f8de2b30ea3720686c7b81ffd715a7b258 (patch)
treea3d30579152ee328a4d377b4bf979dff768f777a /buildscripts/resmokelib
parent1e0d2b2e113df9e56af430f5ff09bac224cf05f0 (diff)
downloadmongo-67e018f8de2b30ea3720686c7b81ffd715a7b258.tar.gz
SERVER-32285 dbtests suite runs no tests in resmoke.py
Diffstat (limited to 'buildscripts/resmokelib')
-rw-r--r--buildscripts/resmokelib/selector.py2
-rw-r--r--buildscripts/resmokelib/testing/suite.py4
2 files changed, 2 insertions, 4 deletions
diff --git a/buildscripts/resmokelib/selector.py b/buildscripts/resmokelib/selector.py
index 6d80d06be87..f60ff87813c 100644
--- a/buildscripts/resmokelib/selector.py
+++ b/buildscripts/resmokelib/selector.py
@@ -415,7 +415,7 @@ class _Selector(object):
"""
# 1. Find the root files.
- if selector_config.roots:
+ if selector_config.roots is not None:
roots = selector_config.roots
else:
roots = self._test_file_explorer.read_root_file(selector_config.root)
diff --git a/buildscripts/resmokelib/testing/suite.py b/buildscripts/resmokelib/testing/suite.py
index 2a2e2c5cee6..59a88f33d72 100644
--- a/buildscripts/resmokelib/testing/suite.py
+++ b/buildscripts/resmokelib/testing/suite.py
@@ -63,8 +63,6 @@ class Suite(object):
filtering policy.
"""
test_info = self.get_selector_config()
- if not test_info:
- return [], []
# The mongos_test doesn't have to filter anything, the test_info is just the arguments to
# the mongos program to be used as the test case.
@@ -102,7 +100,7 @@ class Suite(object):
"""
if "selector" not in self._suite_config:
- return None
+ return {}
selector = self._suite_config["selector"].copy()
if self.options.include_tags is not None: