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

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

Issue 281383005: Add Rietveld's upload.py to the standalone telemetry archive (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/telemetry/util/find_dependencies.py
diff --git a/tools/telemetry/telemetry/util/find_dependencies.py b/tools/telemetry/telemetry/util/find_dependencies.py
index 1e3557b0332824ad3bd59cb3fd930e07e8f55c07..eb4f29304e3564e0e723d2c1627bea56dbb3b68f 100644
--- a/tools/telemetry/telemetry/util/find_dependencies.py
+++ b/tools/telemetry/telemetry/util/find_dependencies.py
@@ -210,6 +210,12 @@ def ZipDependencies(paths, dependencies, options):
gsutil_dependencies -= FindExcludedFiles(
set(gsutil_dependencies), options)
+ # Also add upload.py to the archive from depot_tools, if it is available.
+ # This allows us to post patches without requiring a full depot_tools
+ # install. There's no real point in including upload.py if we do not
+ # also have gsutil, which is why this is inside the gsutil block.
+ gsutil_dependencies.add(os.path.join(gsutil_base_dir, 'upload.py'))
+
for path in gsutil_dependencies:
path_in_archive = os.path.join(
'telemetry', os.path.relpath(util.GetTelemetryDir(), base_dir),
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698