Skip to content

Instantly share code, notes, and snippets.

@rueckstiess
Created February 11, 2014 05:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rueckstiess/8929706 to your computer and use it in GitHub Desktop.
Save rueckstiess/8929706 to your computer and use it in GitHub Desktop.
oplogsize patch for mlaunch tests to run on linux.
diff --git mtools/mlaunch/mlaunch.py mtools/mlaunch/mlaunch.py
index 40b7057..89cc05d 100755
--- mtools/mlaunch/mlaunch.py
+++ mtools/mlaunch/mlaunch.py
@@ -1168,7 +1168,7 @@ class MLaunchTool(BaseCmdLineTool):
key_path = os.path.abspath(os.path.join(self.dir, 'keyfile'))
auth_param = '--keyFile %s'%key_path
- if self.unknown_args:
+ if self.unknown_args and extra != '--configsvr':
extra = self._filter_valid_arguments(self.unknown_args, "mongod") + ' ' + extra
path = self.args['binarypath'] or ''
diff --git mtools/test/test_mlaunch.py mtools/test/test_mlaunch.py
index 7ca4fc0..ee998d0 100644
--- mtools/test/test_mlaunch.py
+++ mtools/test/test_mlaunch.py
@@ -76,7 +76,7 @@ class TestMLaunch(object):
if arg_str.startswith('init') or arg_str.startswith('--'):
# add --port and --nojournal to init calls
- arg_str += ' --port %i --nojournal --smallfiles' % self.port
+ arg_str += ' --port %i --nojournal --smallfiles --oplogSize 100' % self.port
if self.use_auth:
# add --auth to init calls if flag is set
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment