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

Unified Diff: tools/telemetry/telemetry/core/discover.py

Issue 551883003: Update test_runner.py to use page_set names rather than paths. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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
« no previous file with comments | « no previous file | tools/telemetry/telemetry/core/discover_unittest.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/core/discover.py
diff --git a/tools/telemetry/telemetry/core/discover.py b/tools/telemetry/telemetry/core/discover.py
index 9e8118a731fd59e29f834043096b5438750eb694..f7db47b4a90fc21d8019d3c4d19b32acf0826239 100644
--- a/tools/telemetry/telemetry/core/discover.py
+++ b/tools/telemetry/telemetry/core/discover.py
@@ -9,8 +9,6 @@ import re
from telemetry import decorators
from telemetry.core import camel_case
-from telemetry.core import util
-from telemetry.page import page_set
@decorators.Cache
@@ -123,13 +121,3 @@ _counter = [0]
def _GetUniqueModuleName():
_counter[0] += 1
return "module_" + str(_counter[0])
-
-
-def IsPageSetFile(file_path):
- root_name, ext_name = os.path.splitext(file_path)
- if 'unittest' in root_name or 'page_sets/data' in root_name:
- return False
- if ext_name != '.py':
- return False
- module = util.GetPythonPageSetModule(file_path)
- return bool(DiscoverClassesInModule(module, page_set.PageSet))
« no previous file with comments | « no previous file | tools/telemetry/telemetry/core/discover_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698