Info
Prior to the changes from SERVER-28636, invoking python buildscripts/resmoke.py would caused a "Must specify either --suites or a list of tests" error. We should either restore this behavior by (a) detecting when --suites hasn't been specified (it currently defaults to with_server.yml and args is an empty list), or (b) changing the with_server.yml and no_server.yml YAML suite configurations to specify
selector:
roots: []
and have resmoke.py log "No tests ran" when invoking python buildscripts/resmoke.py.
Top User Comments
xgen-internal-githook commented on Tue, 21 Nov 2017 14:36:31 +0000:
Author:
{'name': 'Jonathan Abrahams', 'username': 'hptabster', 'email': 'jonathan@mongodb.com'}
Message: SERVER-30755 KeyError "selector" is raised when no tests or test suites specified to resmoke.py
Branch: master
https://github.com/mongodb/mongo/commit/9c6381687e0bf72122c1b5d7aa11fb949a6145b4
Steps to Reproduce
$ python buildscripts/resmoke.py
[resmoke] 2017-08-21T08:44:53.369-0400 resmoke.py invocation: buildscripts/resmoke.py
Traceback (most recent call last):
File "buildscripts/resmoke.py", line 186, in
main()
File "buildscripts/resmoke.py", line 141, in main
suites = resmokelib.parser.get_suites(values, args)
File "/Users/maxh/debugging/mongo/buildscripts/resmokelib/parser.py", line 364, in get_suites
suite = testing.suite.Suite(suite_filename, suite_config)
File "/Users/maxh/debugging/mongo/buildscripts/resmokelib/testing/suite.py", line 31, in __init__
self.tests = self._get_tests_for_kind(self.test_kind)
File "/Users/maxh/debugging/mongo/buildscripts/resmokelib/testing/suite.py", line 52, in _get_tests_for_kind
test_info = self.get_selector_config()
File "/Users/maxh/debugging/mongo/buildscripts/resmokelib/testing/suite.py", line 86, in get_selector_config
return self._suite_config["selector"]
KeyError: 'selector'