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

Side by Side Diff: build/android/pylib/linker/test_runner.py

Issue 1314313004: [Android][telemetry] Update pylib imports for modules that moved into devil. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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 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 """Runs linker tests on a particular device.""" 5 """Runs linker tests on a particular device."""
6 6
7 import logging 7 import logging
8 import os.path 8 import os.path
9 import sys 9 import sys
10 import traceback 10 import traceback
11 11
12 from devil.android import apk_helper
12 from pylib import constants 13 from pylib import constants
13 from pylib.base import base_test_result 14 from pylib.base import base_test_result
14 from pylib.base import base_test_runner 15 from pylib.base import base_test_runner
15 from pylib.linker import test_case 16 from pylib.linker import test_case
16 from pylib.utils import apk_helper
17 17
18 18
19 # Name of the Android package to install for this to work. 19 # Name of the Android package to install for this to work.
20 _PACKAGE_NAME = 'ChromiumLinkerTest' 20 _PACKAGE_NAME = 'ChromiumLinkerTest'
21 21
22 22
23 class LinkerExceptionTestResult(base_test_result.BaseTestResult): 23 class LinkerExceptionTestResult(base_test_result.BaseTestResult):
24 """Test result corresponding to a python exception in a host-custom test.""" 24 """Test result corresponding to a python exception in a host-custom test."""
25 25
26 def __init__(self, test_name, exc_info): 26 def __init__(self, test_name, exc_info):
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 test.tagged_name) 89 test.tagged_name)
90 exc_info = sys.exc_info() 90 exc_info = sys.exc_info()
91 results = base_test_result.TestRunResults() 91 results = base_test_result.TestRunResults()
92 results.AddResult(LinkerExceptionTestResult( 92 results.AddResult(LinkerExceptionTestResult(
93 test.tagged_name, exc_info)) 93 test.tagged_name, exc_info))
94 94
95 if not results.DidRunPass(): 95 if not results.DidRunPass():
96 return results, test 96 return results, test
97 else: 97 else:
98 return results, None 98 return results, None
OLDNEW
« no previous file with comments | « build/android/pylib/linker/test_case.py ('k') | build/android/pylib/local/device/local_device_environment.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698