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

Unified Diff: tools/telemetry/telemetry/internal/util/find_dependencies.py

Issue 1263063003: Revert of Create classes_util API, change discover to return a list instead of a dict. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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: tools/telemetry/telemetry/internal/util/find_dependencies.py
diff --git a/tools/telemetry/telemetry/internal/util/find_dependencies.py b/tools/telemetry/telemetry/internal/util/find_dependencies.py
index b45cf78b059ae5b504da0e665a12e097a828e705..2082565ea83ad0671204fac62240b4fc6b4a82d6 100644
--- a/tools/telemetry/telemetry/internal/util/find_dependencies.py
+++ b/tools/telemetry/telemetry/internal/util/find_dependencies.py
@@ -13,12 +13,11 @@
from catapult_base import cloud_storage
from telemetry import benchmark
+from telemetry.core import discover
from telemetry.internal.util import bootstrap
from telemetry.internal.util import command_line
from telemetry.internal.util import path
from telemetry.internal.util import path_set
-from telemetry.util import classes_util
-
DEPS_FILE = 'bootstrap_deps'
@@ -63,9 +62,10 @@
# Add base_dir to path so our imports relative to base_dir will work.
sys.path.append(base_dir)
- tests = classes_util.DiscoverClasses(base_dir, base_dir, benchmark.Benchmark)
-
- for test_class in tests:
+ tests = discover.DiscoverClasses(base_dir, base_dir, benchmark.Benchmark,
+ index_by_class_name=True)
+
+ for test_class in tests.itervalues():
test_obj = test_class()
# Ensure the test's default options are set if needed.
« no previous file with comments | « tools/telemetry/telemetry/internal/platform/tracing_controller_backend.py ('k') | tools/telemetry/telemetry/record_wpr.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698