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

Side by Side Diff: build/android/pylib/remote/device/remote_device_instrumentation_test_run.py

Issue 1218053003: [Android] Begin switching from lighttpd + apache to EmbeddedTestServer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 """Run specific test on specific environment.""" 5 """Run specific test on specific environment."""
6 6
7 import logging 7 import logging
8 import os 8 import os
9 import tempfile 9 import tempfile
10 10
(...skipping 23 matching lines...) Expand all
34 for t in tests: 34 for t in tests:
35 test_name = '%s#%s' % (t['class'], t['method']) 35 test_name = '%s#%s' % (t['class'], t['method'])
36 logging.debug(' %s', test_name) 36 logging.debug(' %s', test_name)
37 test_list_file.write('%s\n' % test_name) 37 test_list_file.write('%s\n' % test_name)
38 test_list_file.flush() 38 test_list_file.flush()
39 self._test_instance._data_deps.append( 39 self._test_instance._data_deps.append(
40 (os.path.abspath(test_list_file.name), None)) 40 (os.path.abspath(test_list_file.name), None))
41 41
42 env_vars = self._test_instance.GetDriverEnvironmentVars( 42 env_vars = self._test_instance.GetDriverEnvironmentVars(
43 test_list_file_path=test_list_file.name) 43 test_list_file_path=test_list_file.name)
44 env_vars.update(self._test_instance.GetHttpServerEnvironmentVars())
45 44
46 logging.debug('extras:') 45 logging.debug('extras:')
47 for k, v in env_vars.iteritems(): 46 for k, v in env_vars.iteritems():
48 logging.debug(' %s: %s', k, v) 47 logging.debug(' %s: %s', k, v)
49 48
50 self._AmInstrumentTestSetup( 49 self._AmInstrumentTestSetup(
51 self._test_instance.apk_under_test, 50 self._test_instance.apk_under_test,
52 self._test_instance.driver_apk, 51 self._test_instance.driver_apk,
53 self._test_instance.driver_name, 52 self._test_instance.driver_name,
54 environment_variables=env_vars, 53 environment_variables=env_vars,
(...skipping 10 matching lines...) Expand all
65 result_code, result_bundle, statuses, 0, 0) 64 result_code, result_bundle, statuses, 0, 0)
66 65
67 if isinstance(result, base_test_result.BaseTestResult): 66 if isinstance(result, base_test_result.BaseTestResult):
68 r.AddResult(result) 67 r.AddResult(result)
69 elif isinstance(result, list): 68 elif isinstance(result, list):
70 r.AddResults(result) 69 r.AddResults(result)
71 else: 70 else:
72 raise Exception('Unexpected result type: %s' % type(result).__name__) 71 raise Exception('Unexpected result type: %s' % type(result).__name__)
73 72
74 return r 73 return r
OLDNEW
« no previous file with comments | « build/android/pylib/local/device/local_device_instrumentation_test_run.py ('k') | build/config/android/internal_rules.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698