Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-28302

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

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

      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 Jonathan Abrahams
            Reporter:
            kyle.suarez@mongodb.com Kyle Suarez
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: