Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(379)

Unified Diff: build/android/pylib/host_driven/test_info_collection.py

Issue 144183004: Convert to gtest-style filtering in instrumentation tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: build/android/pylib/host_driven/test_info_collection.py
diff --git a/build/android/pylib/host_driven/test_info_collection.py b/build/android/pylib/host_driven/test_info_collection.py
index a857d3c1cdf2e63b92c3f62cda2d860f85517732..9e0ed7b2bd5f4be53d7288debb3599f503508072 100644
--- a/build/android/pylib/host_driven/test_info_collection.py
+++ b/build/android/pylib/host_driven/test_info_collection.py
@@ -6,6 +6,7 @@
import logging
import os
+import re
import tests_annotations
@@ -141,4 +142,4 @@ class TestInfoCollection(object):
Returns:
True if no name filter supplied or it matches; False otherwise.
"""
- return not name_filter or name_filter in test_info.qualified_name
+ return not name_filter or re.search(name_filter, test_info.qualified_name)
« no previous file with comments | « no previous file | build/android/pylib/instrumentation/test_jar.py » ('j') | build/android/pylib/instrumentation/test_jar.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698