diff options
author | Eric Milkie <milkie@10gen.com> | 2012-05-02 15:58:02 -0400 |
---|---|---|
committer | Eric Milkie <milkie@10gen.com> | 2012-05-02 20:10:20 -0400 |
commit | b9f721a6f499a605d04da1579ded521fc0261b50 (patch) | |
tree | 2437935e10cff0b97ee79272a22a964f444c5e0d /buildscripts | |
parent | 0e527a87debcbb3074feafd796142f22f75e231b (diff) | |
download | mongo-b9f721a6f499a605d04da1579ded521fc0261b50.tar.gz |
enumerate(x,1) not supported on older Pythons
Diffstat (limited to 'buildscripts')
-rwxr-xr-x | buildscripts/smoke.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/buildscripts/smoke.py b/buildscripts/smoke.py index f6a51c383c0..97dcf1dffac 100755 --- a/buildscripts/smoke.py +++ b/buildscripts/smoke.py @@ -408,7 +408,7 @@ def run_tests(tests): master.wait_for_repl() tests_run = 0 - for tests_run, test in enumerate(tests, 1): + for tests_run, test in enumerate(tests): try: fails.append(test) runTest(test) @@ -418,7 +418,7 @@ def run_tests(tests): if small_oplog: master.wait_for_repl() elif test[1]: # reach inside test and see if startmongod is true - if tests_run % 20 == 0: + if (tests_run+1) % 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__() |