resmoke.py parser should accept files that don't end in .js

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • 3.5.9
    • Affects Version/s: None
    • Component/s: Testing Infrastructure
    • None
    • Fully Compatible
    • ALL
    • TIG 2017-05-08, TIG 2017-05-29, TIG 2017-06-19
    • 0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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'
      

            Assignee:
            Jonathan Abrahams (Inactive)
            Reporter:
            Kyle Suarez (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: