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

Side by Side Diff: content/test/gpu/gpu_tests/lint_unittest.py

Issue 2611263002: Port gpu_process tests to gpu_integration_test harness. (Closed)
Patch Set: Added workaround for flakiness on Android. Created 3 years, 11 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 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
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 )))
OLDNEW
« no previous file with comments | « content/test/gpu/gpu_tests/gpu_process_integration_test.py ('k') | content/test/gpu/page_sets/__init__.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698