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

XMLWordPrintableJSON

    • 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.
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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 Tooling and Methods (STM) (Inactive)
              Reporter:
              Max Hirschhorn
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: