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

Side by Side Diff: build/android/pylib/base/base_test_result.py

Issue 727543003: [Android] Fix new pylint errors in build/android/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 1 month 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 | « build/android/pylib/android_commands.py ('k') | build/android/pylib/device/adb_wrapper.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 (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 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 """Module containing base test results classes.""" 5 """Module containing base test results classes."""
6 6
7 class ResultType(object): 7 class ResultType(object):
8 """Class enumerating test types.""" 8 """Class enumerating test types."""
9 PASS = 'PASS' 9 PASS = 'PASS'
10 SKIP = 'SKIP' 10 SKIP = 'SKIP'
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 def GetUnknown(self): 196 def GetUnknown(self):
197 """Get the set of all unknown test results.""" 197 """Get the set of all unknown test results."""
198 return self._GetType(ResultType.UNKNOWN) 198 return self._GetType(ResultType.UNKNOWN)
199 199
200 def GetNotPass(self): 200 def GetNotPass(self):
201 """Get the set of all non-passed test results.""" 201 """Get the set of all non-passed test results."""
202 return self.GetAll() - self.GetPass() 202 return self.GetAll() - self.GetPass()
203 203
204 def DidRunPass(self): 204 def DidRunPass(self):
205 """Return whether the test run was successful.""" 205 """Return whether the test run was successful."""
206 return not (self.GetNotPass() - self.GetSkip()) 206 return not self.GetNotPass() - self.GetSkip()
207 207
OLDNEW
« no previous file with comments | « build/android/pylib/android_commands.py ('k') | build/android/pylib/device/adb_wrapper.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698