summaryrefslogtreecommitdiff
path: root/SConscript.smoke
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@10gen.com>2012-09-13 11:49:26 -0400
committerAndy Schwerin <schwerin@10gen.com>2012-09-13 12:49:32 -0400
commite4a55dd9195127c6733d8f7269eea032feafd6ea (patch)
tree5cb18018c956e262d20c2688f8c93aa5889c803a /SConscript.smoke
parent3b7bb12a556868be2082dbd9eb81431082a75d7b (diff)
downloadmongo-e4a55dd9195127c6733d8f7269eea032feafd6ea.tar.gz
Don't start a mongod when running CppUnittests.
Diffstat (limited to 'SConscript.smoke')
-rw-r--r--SConscript.smoke8
1 files changed, 5 insertions, 3 deletions
diff --git a/SConscript.smoke b/SConscript.smoke
index d553b1d57d1..35b1335fef1 100644
--- a/SConscript.smoke
+++ b/SConscript.smoke
@@ -53,7 +53,7 @@ def addSmoketest( name, deps, extraSmokeArgs=[] ):
smokeArgs = smokeFlags + [target] + extraSmokeArgs
addTest(name, deps, utils.run_smoke_command(*smokeArgs))
-def addSmokeSuite( name, suitefile ):
+def addSmokeSuite( name, suitefile, needMongod=False ):
# Add a smoketest target which invokes smoke.py with
# --from-file, and passes the named suitefile as the
# command line argument.
@@ -61,8 +61,10 @@ def addSmokeSuite( name, suitefile ):
# resolve an initial # in the suitefile
suitefile = str(env.File(suitefile))
- addTest(name, [suitefile],
- utils.run_smoke_command('--mode', 'files', '--from-file', suitefile))
+ smoke_args = ['--mode', 'files', '--from-file', suitefile]
+ if not needMongod:
+ smoke_args.append('--dont-start-mongod')
+ addTest(name, [suitefile], utils.run_smoke_command(*smoke_args))
addSmoketest( "smoke", [ add_exe( "test" ), add_exe( "mongod" ), add_exe( "mongo" ) ] )
addSmoketest( "smokePerf", [ add_exe("perftest") ] )