summaryrefslogtreecommitdiff
path: root/buildscripts
diff options
context:
space:
mode:
authorEric Milkie <milkie@10gen.com>2012-04-30 10:50:17 -0400
committerEric Milkie <milkie@10gen.com>2012-04-30 14:43:50 -0400
commit7c50f4320f11865483541c8c092a0b482f5c51fc (patch)
tree50dabd66e59ac451a239e6eec1466aad5d6e2dbd /buildscripts
parentfb6faacbd8562186b65c335f8b3d1a4bdd936beb (diff)
downloadmongo-7c50f4320f11865483541c8c092a0b482f5c51fc.tar.gz
SERVER-5244 restart mongod periodically during tests
The 32-bit Windows builder runs out of virtual address space before it reaches the end of the js test suite. This change will help it to complete successfully. Note that smalloplog suite, which tests how well replication works after all the js tests have run, is unaffected by this. The buildbot config will be changed such that 32-bit machines no longer run the small oplog suite.
Diffstat (limited to 'buildscripts')
-rwxr-xr-xbuildscripts/smoke.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/buildscripts/smoke.py b/buildscripts/smoke.py
index b052bd4f503..7a7d519c410 100755
--- a/buildscripts/smoke.py
+++ b/buildscripts/smoke.py
@@ -407,6 +407,7 @@ def run_tests(tests):
if small_oplog:
master.wait_for_repl()
+ tests_run = 0
for test in tests:
try:
fails.append(test)
@@ -416,6 +417,13 @@ def run_tests(tests):
if small_oplog:
master.wait_for_repl()
+ elif test[1]: # reach inside test and see if startmongod is true
+ tests_run = tests_run + 1
+ if tests_run % 20 == 0:
+ # restart mongo every 20 times, for our 32-bit machines
+ master.__exit__(None, None, None)
+ master = mongod(small_oplog=small_oplog,no_journal=no_journal,no_preallocj=no_preallocj,auth=auth).__enter__()
+
except TestFailure, f:
try:
print f