summaryrefslogtreecommitdiff
path: root/utils/lit/TestFormats.py
diff options
context:
space:
mode:
Diffstat (limited to 'utils/lit/TestFormats.py')
-rw-r--r--utils/lit/TestFormats.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/utils/lit/TestFormats.py b/utils/lit/TestFormats.py
index cc40a309dc..f067baedca 100644
--- a/utils/lit/TestFormats.py
+++ b/utils/lit/TestFormats.py
@@ -53,8 +53,9 @@ class GoogleTest(object):
def execute(self, test, litConfig):
testPath,testName = os.path.split(test.getSourcePath())
- if not os.path.exists(testPath):
- # Handle GTest typed tests, whose name includes a '/'.
+ while not os.path.exists(testPath):
+ # Handle GTest parametrized and typed tests, whose name includes
+ # some '/'s.
testPath, namePrefix = os.path.split(testPath)
testName = os.path.join(namePrefix, testName)