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

Unified Diff: build/android/pylib/chrome_test_server_spawner.py

Issue 1571803002: [Android] Prepare build/android/ for catapult+devil. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@create-device-library-links
Patch Set: rebase 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 | « build/android/pylib/base/test_dispatcher_unittest.py ('k') | build/android/pylib/constants/host_paths.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/pylib/chrome_test_server_spawner.py
diff --git a/build/android/pylib/chrome_test_server_spawner.py b/build/android/pylib/chrome_test_server_spawner.py
index f4e7e96a43cf8d158e5d142f96385fdbd6683f38..ec2896f654862a00fab31f35a34f255551c8db30 100644
--- a/build/android/pylib/chrome_test_server_spawner.py
+++ b/build/android/pylib/chrome_test_server_spawner.py
@@ -25,16 +25,17 @@ from devil.android import forwarder
from devil.android import ports
from pylib import constants
+from pylib.constants import host_paths
# Path that are needed to import necessary modules when launching a testserver.
os.environ['PYTHONPATH'] = os.environ.get('PYTHONPATH', '') + (':%s:%s:%s:%s:%s'
- % (os.path.join(constants.DIR_SOURCE_ROOT, 'third_party'),
- os.path.join(constants.DIR_SOURCE_ROOT, 'third_party', 'tlslite'),
- os.path.join(constants.DIR_SOURCE_ROOT, 'third_party', 'pyftpdlib',
+ % (os.path.join(host_paths.DIR_SOURCE_ROOT, 'third_party'),
+ os.path.join(host_paths.DIR_SOURCE_ROOT, 'third_party', 'tlslite'),
+ os.path.join(host_paths.DIR_SOURCE_ROOT, 'third_party', 'pyftpdlib',
'src'),
- os.path.join(constants.DIR_SOURCE_ROOT, 'net', 'tools', 'testserver'),
- os.path.join(constants.DIR_SOURCE_ROOT, 'sync', 'tools', 'testserver')))
+ os.path.join(host_paths.DIR_SOURCE_ROOT, 'net', 'tools', 'testserver'),
+ os.path.join(host_paths.DIR_SOURCE_ROOT, 'sync', 'tools', 'testserver')))
SERVER_TYPES = {
@@ -216,7 +217,7 @@ class TestServerThread(threading.Thread):
logging.info('Start running the thread!')
self.wait_event.clear()
self._GenerateCommandLineArguments()
- command = constants.DIR_SOURCE_ROOT
+ command = host_paths.DIR_SOURCE_ROOT
if self.arguments['server-type'] == 'sync':
command = [os.path.join(command, 'sync', 'tools', 'testserver',
'sync_testserver.py')] + self.command_line
@@ -233,7 +234,7 @@ class TestServerThread(threading.Thread):
# paths in the arguments are resolved correctly.
self.process = subprocess.Popen(
command, preexec_fn=self._CloseUnnecessaryFDsForTestServerProcess,
- cwd=constants.DIR_SOURCE_ROOT)
+ cwd=host_paths.DIR_SOURCE_ROOT)
if unbuf:
os.environ['PYTHONUNBUFFERED'] = unbuf
if self.process:
« no previous file with comments | « build/android/pylib/base/test_dispatcher_unittest.py ('k') | build/android/pylib/constants/host_paths.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698