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

resmoke - add support for prepending scripts to mongo eval list

    • Fully Compatible
    • TIG 2017-04-17

      When resmoke.py creates the string for the --eval argument for mongo, it builds the string in the following order.

      1. List of global variables
      2. The "eval" field from YAML config

      In the mongo-tools project, there is a need to override servers.js and servers_misc.js. In order to do this though, the loads for these files must proceed the global variable setting in the eval argument.

      The tools do this via a new field called "eval_prepend":
      See https://github.com/mongodb/mongo-tools/blob/a8800cf352f1efd5f442764a151586d1701dc9a2/test/qa-tests/buildscripts/resmokelib/core/programs.py#L162-L163

      An example suite that uses this is the core suite: https://github.com/mongodb/mongo-tools/blob/a8800cf352f1efd5f442764a151586d1701dc9a2/test/qa-tests/buildscripts/resmokeconfig/suites/core.yml#L18

            Assignee:
            eddie.louie Eddie Louie
            Reporter:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: