diff options
author | Randolph Tan <randolph@10gen.com> | 2014-05-14 14:11:11 -0400 |
---|---|---|
committer | Randolph Tan <randolph@10gen.com> | 2014-05-15 14:04:11 -0400 |
commit | 0dabee8227d445a18fa5e8e49b2be60ba2a0beef (patch) | |
tree | 5cd9058a4483202c2f7e2ab6f5c44079a74ac157 /buildscripts | |
parent | 4de88387eec6c0bb08b10d0ba1574a656f56232d (diff) | |
download | mongo-0dabee8227d445a18fa5e8e49b2be60ba2a0beef.tar.gz |
SERVER-13741 Migrate remaining tests to use write commands
Diffstat (limited to 'buildscripts')
-rwxr-xr-x | buildscripts/smoke.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/buildscripts/smoke.py b/buildscripts/smoke.py index cb40336c358..bc1aa3b1387 100755 --- a/buildscripts/smoke.py +++ b/buildscripts/smoke.py @@ -449,14 +449,11 @@ def skipTest(path): return False -forceCommandsForDirs = ["aggregation", "auth", "core", "parallel", "replsets", "sharding"] -# look for jstests and one of the above suites separated by either posix or windows slashes -forceCommandsRE = re.compile(r"jstests[/\\](%s)" % ('|'.join(forceCommandsForDirs))) +legacyWriteRE = re.compile(r"jstests[/\\]multiVersion") def setShellWriteModeForTest(path, argv): swm = shell_write_mode - if swm == "legacy": # change when the default changes to "commands" - if use_write_commands or forceCommandsRE.search(path): - swm = "commands" + if legacyWriteRE.search(path): + swm = "legacy" argv += ["--writeMode", swm] def runTest(test, result): @@ -1223,7 +1220,7 @@ def main(): parser.add_option('--use-write-commands', dest='use_write_commands', default=False, action='store_true', help='Deprecated(use --shell-write-mode): Sets the shell to use write commands by default') - parser.add_option('--shell-write-mode', dest='shell_write_mode', default="legacy", + parser.add_option('--shell-write-mode', dest='shell_write_mode', default="commands", help='Sets the shell to use a specific write mode: commands/compatibility/legacy (default:legacy)') global tests |