|
The resmoke.py parser only accepts files that end with ".js". This restriction is too strict, and it means that you can't use the --findSuites tool for unit tests and integration tests.
Ideally, I'd like to be able to do one of the following:
$ resmoke -f src/mongo/db/nesting_depth_test.cpp
|
$ resmoke -f build/integration_tests/nesting_depth_test
|
Unfortunately, both trigger an exception:
Traceback (most recent call last):
|
File "/home/ksuarz/code/mongo/buildscripts/resmoke.py", line 194, in <module>
|
main()
|
File "/home/ksuarz/code/mongo/buildscripts/resmoke.py", line 150, in main
|
suites = resmokelib.parser.get_suites(values, args)
|
File "/home/ksuarz/code/mongo/buildscripts/resmokelib/parser.py", line 324, in get_suites
|
suite_config = _make_jstests_config(args)
|
File "/home/ksuarz/code/mongo/buildscripts/resmokelib/parser.py", line 404, in _make_jstests_config
|
% (pathname))
|
optparse.OptionValueError: Expected a list of JS files, but got 'src/mongo/db/nesting_depth_test.cpp'
|
|