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

Replace runMongoProgram("mongod", ...) with MongoRunner.runMongod(...)

    • Server Tooling & Methods
    • ALL
    • Hide
      mongo --nodb --eval 'TestData = new Object(); TestData.storageEngine="wiredTiger"; MongoRunner.runMongod({})'
      

      starts up a mongod with the wiredTiger storage engine.

      mongo --nodb --eval 'TestData = new Object(); TestData.storageEngine="wiredTiger"; runMongoProgram("mongod", "--port", 27017)'
      

      starts up a mongod with the default storage engine.

      Show
      mongo --nodb --eval 'TestData = new Object (); TestData.storageEngine= "wiredTiger" ; MongoRunner.runMongod({})' starts up a mongod with the wiredTiger storage engine. mongo --nodb --eval 'TestData = new Object (); TestData.storageEngine= "wiredTiger" ; runMongoProgram( "mongod" , "--port" , 27017)' starts up a mongod with the default storage engine.

      The runMongoProgram() shell helper is a generic construct to allow an arbitrary executable to be run. It does not configure the options of the mongod based on the global TestData object.

            Assignee:
            backlog-server-stm Backlog - Server Tooling and Methods (STM) (Inactive)
            Reporter:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: