Commit 1eaed7d1 authored by dtu's avatar dtu Committed by Commit bot

[telemetry] Add in entry points to find_dependencies with no arguments.

Running modulefinder with just __init__ doesn't include everything, and having
the entry points is more likely to include everything.

BUG=None.
TEST=tools/telemetry/find_dependencies | wc -l  # == 3770, not 3719

Review URL: https://codereview.chromium.org/1089673002

Cr-Commit-Position: refs/heads/master@{#325352}
parent be2c9614
...@@ -126,10 +126,14 @@ def FindDependencies(target_paths, options): ...@@ -126,10 +126,14 @@ def FindDependencies(target_paths, options):
dependencies = path_set.PathSet() dependencies = path_set.PathSet()
# Including __init__.py will include Telemetry and its dependencies. # Including Telemetry's major entry points will (hopefully) include Telemetry
# If the user doesn't pass any arguments, we just have Telemetry. # and all its dependencies. If the user doesn't pass any arguments, we just
# have Telemetry.
dependencies |= FindPythonDependencies(os.path.realpath( dependencies |= FindPythonDependencies(os.path.realpath(
os.path.join(path.GetTelemetryDir(), 'telemetry', '__init__.py'))) os.path.join(path.GetTelemetryDir(), 'telemetry', 'benchmark_runner.py')))
dependencies |= FindPythonDependencies(os.path.realpath(
os.path.join(path.GetTelemetryDir(),
'telemetry', 'unittest_util', 'run_tests.py')))
dependencies |= FindBootstrapDependencies(path.GetTelemetryDir()) dependencies |= FindBootstrapDependencies(path.GetTelemetryDir())
# Add dependencies. # Add dependencies.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment