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

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

Issue 1267243002: 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, 4 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 b9592449f0d75fcee7e91fcdad745a9d010a78c8..6f40196fb2faee58fc37d502635fe853e576645b 100644
--- a/tools/telemetry/telemetry/internal/util/find_dependencies.py
+++ b/tools/telemetry/telemetry/internal/util/find_dependencies.py
@@ -12,12 +12,11 @@
import zipfile
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'
@@ -62,9 +61,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