From b4733e6fd2b2e7f9e34f6a3a190d4fdc52444007 Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Tue, 8 Dec 2015 01:15:44 +0000 Subject: Move LLDBTestResult class to its own module. llvm-svn: 254983 --- lldb/packages/Python/lldbsuite/test/configuration.py | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'lldb/packages/Python/lldbsuite/test/configuration.py') diff --git a/lldb/packages/Python/lldbsuite/test/configuration.py b/lldb/packages/Python/lldbsuite/test/configuration.py index a8c25c8b7dc..3218c7380cf 100644 --- a/lldb/packages/Python/lldbsuite/test/configuration.py +++ b/lldb/packages/Python/lldbsuite/test/configuration.py @@ -221,3 +221,14 @@ all_tests = set() # safe default setCrashInfoHook = lambda x : None __setupCrashInfoHook() + +def shouldSkipBecauseOfCategories(test_categories): + if useCategories: + if len(test_categories) == 0 or len(categoriesList & set(test_categories)) == 0: + return True + + for category in skipCategories: + if category in test_categories: + return True + + return False -- cgit v1.2.3