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

Unified Diff: tools/telemetry/telemetry/testing/unittest_runner.py

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
Index: tools/telemetry/telemetry/testing/unittest_runner.py
diff --git a/tools/telemetry/telemetry/testing/unittest_runner.py b/tools/telemetry/telemetry/testing/unittest_runner.py
deleted file mode 100644
index b63fa04a82452a7d7e5e4f7206a06fd398d13cfb..0000000000000000000000000000000000000000
--- a/tools/telemetry/telemetry/testing/unittest_runner.py
+++ /dev/null
@@ -1,39 +0,0 @@
-# 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 os
-import subprocess
-import sys
-
-from telemetry.core import util
-
-
-def Run(project_config, no_browser=False):
- args = sys.argv[1:]
- assert '--top-level-dir' not in args, (
- 'Top level directory for running tests should be specified through '
- 'the instance of telemetry.project_config.ProjectConfig.')
- assert '--client-config' not in args, (
- 'Client config file to be used for telemetry should be specified through '
- 'the instance of telemetry.project_config.ProjectConfig.')
- assert project_config.top_level_dir, 'Must specify top level dir for project'
- args.extend(['--top-level-dir', project_config.top_level_dir])
- if project_config.client_config:
- args.extend(['--client-config', project_config.client_config])
- if no_browser and not '--no-browser' in args:
- args.extend(['--no-browser'])
-
- if project_config.default_chrome_root and not '--chrome-root' in args:
- args.extend(['--chrome-root', project_config.default_chrome_root])
-
- env = os.environ.copy()
- telemetry_dir = util.GetTelemetryDir()
- if 'PYTHONPATH' in env:
- env['PYTHONPATH'] = os.pathsep.join([env['PYTHONPATH'], telemetry_dir])
- else:
- env['PYTHONPATH'] = telemetry_dir
-
- path_to_run_tests = os.path.join(os.path.abspath(os.path.dirname(__file__)),
- 'run_tests.py')
- return subprocess.call([sys.executable, path_to_run_tests] + args, env=env)
« no previous file with comments | « tools/telemetry/telemetry/testing/test_page_test_results.py ('k') | tools/telemetry/telemetry/timeline/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698