Chromium Code Reviews

Unified Diff: build/android/pylib/gtest/gtest_test_instance.py

Issue 2754463004: [Android] Strip 'DISABLED_' test name prefix for gtest (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « no previous file | build/android/pylib/local/device/local_device_gtest_run.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/gtest/gtest_test_instance.py
diff --git a/build/android/pylib/gtest/gtest_test_instance.py b/build/android/pylib/gtest/gtest_test_instance.py
index 678f68b17ea9b5c48d94455d8aba16293a762ce4..3078bd923da35ef5f8b4b5476ffe8e6ef18cd8ab 100644
--- a/build/android/pylib/gtest/gtest_test_instance.py
+++ b/build/android/pylib/gtest/gtest_test_instance.py
@@ -138,7 +138,7 @@ def ParseGTestOutput(output):
def handle_possibly_unknown_test():
if test_name is not None:
results.append(base_test_result.BaseTestResult(
- test_name,
+ TestNameWithoutDisabledPrefix(test_name),
fallback_result_type or base_test_result.ResultType.UNKNOWN,
duration, log=('\n'.join(log) if log else '')))
@@ -175,7 +175,7 @@ def ParseGTestOutput(output):
if result_type and test_name:
results.append(base_test_result.BaseTestResult(
- test_name, result_type, duration,
+ TestNameWithoutDisabledPrefix(test_name), result_type, duration,
log=('\n'.join(log) if log else '')))
test_name = None
@@ -203,7 +203,7 @@ def ParseGTestXML(xml_content):
log.append(html.unescape(failure.attrib['message']))
results.append(base_test_result.BaseTestResult(
- '%s.%s' % (suite_name, case_name),
+ '%s.%s' % (suite_name, TestNameWithoutDisabledPrefix(case_name)),
result_type,
int(float(testcase.attrib['time']) * 1000),
log=('\n'.join(log) if log else '')))
« no previous file with comments | « no previous file | build/android/pylib/local/device/local_device_gtest_run.py » ('j') | no next file with comments »

Powered by Google App Engine