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

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

Issue 132463007: Enable presubmit pylint in build/android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 10 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 time
11 import traceback 10 import traceback
12 11
13 from pylib import constants 12 from pylib import constants
14 from pylib.base import base_test_result 13 from pylib.base import base_test_result
15 from pylib.base import base_test_runner 14 from pylib.base import base_test_runner
16 from pylib.utils import apk_helper 15 from pylib.utils import apk_helper
17 16
18 import test_case 17 from . import test_case
19 18
20 19
21 # Name of the Android package to install for this to work. 20 # Name of the Android package to install for this to work.
22 _PACKAGE_NAME = 'ContentLinkerTest' 21 _PACKAGE_NAME = 'ContentLinkerTest'
23 22
24 23
25 class LinkerExceptionTestResult(base_test_result.BaseTestResult): 24 class LinkerExceptionTestResult(base_test_result.BaseTestResult):
26 """Test result corresponding to a python exception in a host-custom test.""" 25 """Test result corresponding to a python exception in a host-custom test."""
27 26
28 def __init__(self, test_name, exc_info): 27 def __init__(self, test_name, exc_info):
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 test.tagged_name) 95 test.tagged_name)
97 exc_info = sys.exc_info() 96 exc_info = sys.exc_info()
98 results = base_test_result.TestRunResults() 97 results = base_test_result.TestRunResults()
99 results.AddResult(LinkerExceptionTestResult( 98 results.AddResult(LinkerExceptionTestResult(
100 test.tagged_name, exc_info)) 99 test.tagged_name, exc_info))
101 100
102 if not results.DidRunPass(): 101 if not results.DidRunPass():
103 return results, test 102 return results, test
104 else: 103 else:
105 return results, None 104 return results, None
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698