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

Side by Side Diff: telemetry/telemetry/__init__.py

Issue 1999073002: Revert of [BattOr][Telemetry] Changes needed to run BattOr tests on telemetry. (Closed) Base URL: git@github.com:catapult-project/catapult@master
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | telemetry/telemetry/internal/platform/tracing_agent/battor_tracing_agent.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 """A library for cross-platform browser tests.""" 5 """A library for cross-platform browser tests."""
6 import os 6 import os
7 import sys 7 import sys
8 8
9 9
10 # Ensure Python >= 2.7. 10 # Ensure Python >= 2.7.
(...skipping 18 matching lines...) Expand all
29 # Add Catapult dependencies to our path. 29 # Add Catapult dependencies to our path.
30 # util depends on catapult_base, so we can't use it to get the catapult dir. 30 # util depends on catapult_base, so we can't use it to get the catapult dir.
31 _CATAPULT_DIR = os.path.join( 31 _CATAPULT_DIR = os.path.join(
32 os.path.dirname(os.path.abspath(__file__)), '..', '..') 32 os.path.dirname(os.path.abspath(__file__)), '..', '..')
33 _AddDirToPythonPath(_CATAPULT_DIR, 'catapult_base') 33 _AddDirToPythonPath(_CATAPULT_DIR, 'catapult_base')
34 _AddDirToPythonPath(_CATAPULT_DIR, 'dependency_manager') 34 _AddDirToPythonPath(_CATAPULT_DIR, 'dependency_manager')
35 _AddDirToPythonPath(_CATAPULT_DIR, 'devil') 35 _AddDirToPythonPath(_CATAPULT_DIR, 'devil')
36 _AddDirToPythonPath(_CATAPULT_DIR, 'tracing') 36 _AddDirToPythonPath(_CATAPULT_DIR, 'tracing')
37 _AddDirToPythonPath(_CATAPULT_DIR, 'common', 'py_trace_event') 37 _AddDirToPythonPath(_CATAPULT_DIR, 'common', 'py_trace_event')
38 _AddDirToPythonPath(_CATAPULT_DIR, 'common', 'battor') 38 _AddDirToPythonPath(_CATAPULT_DIR, 'common', 'battor')
39 _AddDirToPythonPath(_CATAPULT_DIR, 'tracing', 'tracing_build')
40 39
41 40
42 from telemetry.core import util 41 from telemetry.core import util
43 from telemetry.internal.util import global_hooks 42 from telemetry.internal.util import global_hooks
44 43
45 # Add Catapult third party dependencies into our path. 44 # Add Catapult third party dependencies into our path.
46 _AddDirToPythonPath(util.GetCatapultThirdPartyDir(), 'typ') 45 _AddDirToPythonPath(util.GetCatapultThirdPartyDir(), 'typ')
47 46
48 # Add Telemetry third party dependencies into our path. 47 # Add Telemetry third party dependencies into our path.
49 _AddDirToPythonPath(util.GetTelemetryThirdPartyDir(), 'altgraph') 48 _AddDirToPythonPath(util.GetTelemetryThirdPartyDir(), 'altgraph')
50 _AddDirToPythonPath(util.GetTelemetryThirdPartyDir(), 'mock') 49 _AddDirToPythonPath(util.GetTelemetryThirdPartyDir(), 'mock')
51 _AddDirToPythonPath(util.GetTelemetryThirdPartyDir(), 'modulegraph') 50 _AddDirToPythonPath(util.GetTelemetryThirdPartyDir(), 'modulegraph')
52 _AddDirToPythonPath(util.GetTelemetryThirdPartyDir(), 'mox3') 51 _AddDirToPythonPath(util.GetTelemetryThirdPartyDir(), 'mox3')
53 _AddDirToPythonPath(util.GetTelemetryThirdPartyDir(), 'pexpect') 52 _AddDirToPythonPath(util.GetTelemetryThirdPartyDir(), 'pexpect')
54 _AddDirToPythonPath(util.GetTelemetryThirdPartyDir(), 'png') 53 _AddDirToPythonPath(util.GetTelemetryThirdPartyDir(), 'png')
55 _AddDirToPythonPath(util.GetTelemetryThirdPartyDir(), 'pyfakefs') 54 _AddDirToPythonPath(util.GetTelemetryThirdPartyDir(), 'pyfakefs')
56 _AddDirToPythonPath(util.GetTelemetryThirdPartyDir(), 'pyserial') 55 _AddDirToPythonPath(util.GetTelemetryThirdPartyDir(), 'pyserial')
57 _AddDirToPythonPath(util.GetTelemetryThirdPartyDir(), 'webpagereplay') 56 _AddDirToPythonPath(util.GetTelemetryThirdPartyDir(), 'webpagereplay')
58 _AddDirToPythonPath(util.GetTelemetryThirdPartyDir(), 'websocket-client') 57 _AddDirToPythonPath(util.GetTelemetryThirdPartyDir(), 'websocket-client')
59 58
60 # Install Telemtry global hooks. 59 # Install Telemtry global hooks.
61 global_hooks.InstallHooks() 60 global_hooks.InstallHooks()
OLDNEW
« no previous file with comments | « no previous file | telemetry/telemetry/internal/platform/tracing_agent/battor_tracing_agent.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698