0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-30 17:10:48 +01:00

Sort the paths within a test suite, for increased predictability. SERVER-1051

This commit is contained in:
Richard Kreuter 2010-06-14 18:14:24 -04:00
parent ecba5ba151
commit add5430075

View File

@ -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():