summaryrefslogtreecommitdiff
path: root/buildscripts/smoke.py
diff options
context:
space:
mode:
authorgregs <greg@10gen.com>2011-10-05 22:31:51 -0400
committergregs <greg@10gen.com>2011-10-06 09:58:18 -0400
commit97c7de268e7799bb532f4a24a1244bf707de72cb (patch)
tree4d35d0a6421b6941c9c67ed2a2f72d398398d022 /buildscripts/smoke.py
parentf60ba0af6448174a0d79e3c348c864265e9dc5e9 (diff)
downloadmongo-97c7de268e7799bb532f4a24a1244bf707de72cb.tar.gz
allow ignoring files for testing
for example, to ignore known-bad tests
Diffstat (limited to 'buildscripts/smoke.py')
-rwxr-xr-xbuildscripts/smoke.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/buildscripts/smoke.py b/buildscripts/smoke.py
index c46b5d1879d..f9dc64eba24 100755
--- a/buildscripts/smoke.py
+++ b/buildscripts/smoke.py
@@ -471,6 +471,9 @@ def main():
parser.add_option('--nopreallocj', dest='no_preallocj', default=False,
action="store_true",
help='Do not preallocate journal files in tests')
+ parser.add_option('--ignore', dest='ignore_files', default=None,
+ help='Pattern of files to ignore in tests')
+
global tests
(options, tests) = parser.parse_args()
@@ -508,6 +511,10 @@ def main():
elif options.mode == 'files':
tests = [(os.path.abspath(test), True) for test in tests]
+ if options.ignore_files != None :
+ ignore_patt = re.compile( options.ignore_files )
+ tests = filter( lambda x : ignore_patt.search( x[0] ) == None, tests )
+
if not tests:
raise Exception( "no tests specified" )