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

Unified Diff: tools/telemetry/validate_binary_dependencies

Issue 1647513002: Delete tools/telemetry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | « tools/telemetry/update_docs ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/telemetry/validate_binary_dependencies
diff --git a/tools/telemetry/validate_binary_dependencies b/tools/telemetry/validate_binary_dependencies
deleted file mode 100755
index 0294112fddea46c8897c8c549e72369655d54445..0000000000000000000000000000000000000000
--- a/tools/telemetry/validate_binary_dependencies
+++ /dev/null
@@ -1,49 +0,0 @@
-#!/usr/bin/env python
-# Copyright 2015 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-import argparse
-import json
-import os
-import sys
-
-from telemetry.core import util
-
-sys.path.insert(1, os.path.abspath(os.path.join(
- util.GetCatapultDir(), 'catapult_base')))
-sys.path.insert(1, os.path.abspath(os.path.join(
- util.GetCatapultDir(), 'dependency_manager')))
-from catapult_base import cloud_storage
-import dependency_manager
-
-
-def ValidateCloudStorageDependencies(file_path):
- base_config = dependency_manager.BaseConfig(file_path)
- cloud_storage_deps_not_exist = []
- for dep_info in base_config.IterDependencyInfo():
- if dep_info.has_cloud_storage_info:
- if not dep_info.cloud_storage_info.DependencyExistsInCloudStorage():
- print >> sys.stderr, (
- '%s does not exist in cloud storage' % dep_info.cloud_storage_info)
- cloud_storage_deps_not_exist = True
- else:
- print >> sys.stdout, (
- '%s passes cloud storage validation' % dep_info.dependency)
-
- if cloud_storage_deps_not_exist:
- raise Exception(
- "Some dependencies specify cloud storage locations that don't exist.")
-
-
-def Main(args):
- parser = argparse.ArgumentParser(
- description='Validate the dependencies in a binary dependency json file')
- parser.add_argument('file_path', type=str,
- help='The path to binary dependency json file')
- options = parser.parse_args(args)
- ValidateCloudStorageDependencies(options.file_path)
- return 0
-
-
-if __name__ == '__main__':
- sys.exit(Main(sys.argv[1:]))
« no previous file with comments | « tools/telemetry/update_docs ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698