From add5430075393cc841d9f0719584c836005cae34 Mon Sep 17 00:00:00 2001 From: Richard Kreuter Date: Mon, 14 Jun 2010 18:14:24 -0400 Subject: [PATCH] Sort the paths within a test suite, for increased predictability. SERVER-1051 --- buildscripts/smoke.py | 12 +++++++----- 1 file 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():