summaryrefslogtreecommitdiff
path: root/buildscripts
diff options
context:
space:
mode:
authorRichard Kreuter <richard@10gen.com>2010-06-14 18:14:24 -0400
committerRichard Kreuter <richard@10gen.com>2010-06-15 10:06:33 -0400
commitadd5430075393cc841d9f0719584c836005cae34 (patch)
tree27ed5e15cc39f5f876a9aa9b4d2669ecf4717cc6 /buildscripts
parentecba5ba151e2cbeff1f39b87c6ba1b9b6b2034f8 (diff)
downloadmongo-add5430075393cc841d9f0719584c836005cae34.tar.gz
Sort the paths within a test suite, for increased predictability. SERVER-1051
Diffstat (limited to 'buildscripts')
-rwxr-xr-xbuildscripts/smoke.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/buildscripts/smoke.py b/buildscripts/smoke.py
index ad577ce10c4..faa05a1562b 100755
--- a/buildscripts/smoke.py
+++ b/buildscripts/smoke.py
@@ -253,8 +253,8 @@ def runTests(tests):
with mongod(slave=True) if oneMongodPerTest and smallOplog else nothing() as slave2:
runTest(test)
winners.append(test)
-# if isinstance(slave2, mongod):
-# checkDbHashes(master2, slave2)
+ if isinstance(slave2, mongod):
+ checkDbHashes(master2, slave2)
except TestFailure, f:
try:
print f
@@ -267,8 +267,8 @@ def runTests(tests):
except TestFailure, f:
if not continueOnFailure:
return 1
-# if isinstance(slave1, mongod):
-# checkDbHashes(master1, slave1)
+ if isinstance(slave1, mongod):
+ checkDbHashes(master1, slave1)
return 0
@@ -349,7 +349,9 @@ def expandSuites(suites):
if globstr:
globstr = mongoRepo+('jstests/' if globstr.endswith('.js') else '')+globstr
- tests += [(path, usedb) for path in glob.glob(globstr)]
+ paths = glob.glob(globstr)
+ paths.sort()
+ tests += [(path, usedb) for path in paths]
return tests
def main():