Created
February 11, 2014 05:27
-
-
Save rueckstiess/8929706 to your computer and use it in GitHub Desktop.
oplogsize patch for mlaunch tests to run on linux.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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