|
Prior to the changes from b6c1b6b as part of SERVER-28302 to support running non-JavaScript tests through resmoke.py, we would error out with the following message:
$ buildscripts/resmoke.py jstests/noPassthrough/blarf.js
|
[resmoke] 2017-09-01T13:48:42.098-0400 resmoke.py invocation: buildscripts/resmoke.py jstests/noPassthrough/blarf.js
|
Traceback (most recent call last):
|
File "buildscripts/resmoke.py", line 198, in <module>
|
main()
|
File "buildscripts/resmoke.py", line 153, in main
|
suites = resmokelib.parser.get_suites(values, args)
|
File "/home/maxh/debugging/mongo/buildscripts/resmokelib/parser.py", line 330, in get_suites
|
suite_config = _make_jstests_config(args)
|
File "/home/maxh/debugging/mongo/buildscripts/resmokelib/parser.py", line 410, in _make_jstests_config
|
% (pathname))
|
optparse.OptionValueError: Expected a list of JS files, but got 'jstests/noPassthrough/blarf.js'
|
The call to os.path.isfile() was removed in order to accomodate running specific dbtest test suites through resmoke.py. I think we could make it so that the "js_test" test kind (and others except for "db_test" and "mongos_test") error out if the list of tests to run aren't files that exist on disk.
|