summaryrefslogtreecommitdiffstats
path: root/lldb/test/dotest.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/dotest.py')
-rwxr-xr-xlldb/test/dotest.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/lldb/test/dotest.py b/lldb/test/dotest.py
index 4e1ce6d163d..6b7a75bb78a 100755
--- a/lldb/test/dotest.py
+++ b/lldb/test/dotest.py
@@ -1392,7 +1392,14 @@ for ia in range(len(archs) if iterArchs else 1):
return str(test)
def getCategoriesForTest(self,test):
- if hasattr(test,"getCategories"):
+ if hasattr(test,"_testMethodName"):
+ test_method = getattr(test,"_testMethodName")
+ test_method = getattr(test,test_method)
+ else:
+ test_method = None
+ if test_method != None and hasattr(test_method,"getCategories"):
+ test_categories = test_method.getCategories(test)
+ elif hasattr(test,"getCategories"):
test_categories = test.getCategories()
elif inspect.ismethod(test) and test.__self__ != None and hasattr(test.__self__,"getCategories"):
test_categories = test.__self__.getCategories()
OpenPOWER on IntegriCloud