OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 1 # Copyright 2016 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 import unittest | 5 import unittest |
6 import os | 6 import os |
7 | 7 |
8 from gpu_tests import path_util | 8 from gpu_tests import path_util |
9 | 9 |
10 path_util.AddDirToPathIfNeeded( | 10 path_util.AddDirToPathIfNeeded( |
(...skipping 20 matching lines...) Expand all Loading... |
31 lint.Run(args) | 31 lint.Run(args) |
32 assert False, ( | 32 assert False, ( |
33 'This should not be reached as lint.Run always raise SystemExit') | 33 'This should not be reached as lint.Run always raise SystemExit') |
34 except SystemExit as err: | 34 except SystemExit as err: |
35 if err.code == 0: | 35 if err.code == 0: |
36 return True | 36 return True |
37 return False | 37 return False |
38 | 38 |
39 | 39 |
40 class LintTest(unittest.TestCase): | 40 class LintTest(unittest.TestCase): |
41 | |
42 def testPassingPylintCheckForGpuTestsDir(self): | 41 def testPassingPylintCheckForGpuTestsDir(self): |
43 self.assertTrue(LintCheckPassed(os.path.abspath(os.path.dirname(__file__)))) | 42 self.assertTrue(LintCheckPassed(os.path.abspath(os.path.dirname(__file__)))) |
44 | |
45 def testPassingPylintCheckForPageSetsDir(self): | |
46 self.assertTrue(LintCheckPassed( | |
47 os.path.join(os.path.abspath(os.path.dirname(__file__)), '..', 'page_sets' | |
48 ))) | |
OLD | NEW |