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

Expose way for how to run jstests specified on resmoke.py command line

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.1.5
    • Affects Version/s: None
    • Component/s: Testing Infrastructure
    • Labels:
      None
    • Fully Compatible
    • Quint Iteration 5

      Proposal is to add a command line option to resmoke.py called --executor that takes a path to a YAML configuration file. resmoke.py would then construct a suite that uses the "executor" from the YAML configuration and a "selector" with "roots" as the list of tests specified on the command line. The --executor should default to with_server.

      Running a single test or a few tests under the same configuration as a suite is useful for when debugging failures. Example usage:

      python buildscripts/resmoke.py --executor=core_small_oplog jstests/core/or9.js
      # is equivalent to
      python buildscripts/smoke.py --small-oplog jstests/core/or9.js
      

      Additionally, a resmokeconfig/suites/no_server.yml configuration should be added to avoid starting a mongod (equivalent to the --dont-start-mongod option in smoke.py).

      executor:
        js_test:
          config:
            shell_options:
              nodb: ''
      

            Assignee:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Reporter:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: