summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/configuration.py
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2015-12-08 01:15:44 +0000
committerZachary Turner <zturner@google.com>2015-12-08 01:15:44 +0000
commitb4733e6fd2b2e7f9e34f6a3a190d4fdc52444007 (patch)
tree9c9a7674657d52bfcb48bab2865680a9b3623992 /lldb/packages/Python/lldbsuite/test/configuration.py
parent606e3a5221ec611a2f5da6d9a4961e8e2199f9d2 (diff)
downloadbcm5719-llvm-b4733e6fd2b2e7f9e34f6a3a190d4fdc52444007.tar.gz
bcm5719-llvm-b4733e6fd2b2e7f9e34f6a3a190d4fdc52444007.zip
Move LLDBTestResult class to its own module.
llvm-svn: 254983
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/configuration.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/configuration.py11
1 files changed, 11 insertions, 0 deletions
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
OpenPOWER on IntegriCloud