summaryrefslogtreecommitdiff
path: root/buildscripts/resmokelib/selector.py
diff options
context:
space:
mode:
authorMax Hirschhorn <max.hirschhorn@mongodb.com>2017-07-17 11:09:34 -0400
committerMax Hirschhorn <max.hirschhorn@mongodb.com>2017-07-17 11:09:34 -0400
commit58a3909a3f678dec7bd94bfb38f96756c970113e (patch)
tree96675ca63ab47a93aca816909805264e6667ea7b /buildscripts/resmokelib/selector.py
parent27cf9fd7b31f043af913da135385367126f5691b (diff)
downloadmongo-58a3909a3f678dec7bd94bfb38f96756c970113e.tar.gz
SERVER-29642 SERVER-29643 Add Python tests for test lifecycle scripts.
For test_failures.py: * Replaces HistoryReport with a TestHistory class that has get_history_by_revision() and get_history_by_date() methods. They both return a list of ReportEntry tuples that can be used to construct a Report instance. * Adds Python unit test cases for the Report and ReportEntry classes. * Creates Wildcard class as separate concept from Missing class. * Enables --sinceDate and --untilDate with a warning that the script may not return a complete result set. * Adds support for running the script with Python 3. For update_test_lifecycle.py: * Introduces Config namedtuple to represent the test lifecycle model. * Adds Python unit tests cases for the update_tags() function. * Takes advantage of the partial grouping so that computing summaries for (test, task, variant), (test, task), and (test,) combinations do not require re-processing the entire result set.
Diffstat (limited to 'buildscripts/resmokelib/selector.py')
-rw-r--r--buildscripts/resmokelib/selector.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildscripts/resmokelib/selector.py b/buildscripts/resmokelib/selector.py
index a3448116efb..e1cec945603 100644
--- a/buildscripts/resmokelib/selector.py
+++ b/buildscripts/resmokelib/selector.py
@@ -28,7 +28,7 @@ def _parse_tag_file(test_kind):
a list of tags, i.e., {'file1.js': ['tag1', 'tag2'], 'file2.js': ['tag2', 'tag3']}
"""
if config.TAG_FILE:
- tags_conf = _tags.TagsConfig(config.TAG_FILE)
+ tags_conf = _tags.TagsConfig.from_file(config.TAG_FILE)
tagged_roots = tags_conf.get_test_patterns(test_kind)
else:
tagged_roots = []