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

Side by Side Diff: scripts/slave/recipe_modules/chromium/steps.py

Issue 553623003: Revert of Add mojo python bindings tests to the waterfalls. (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 6 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 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 5
6 class Test(object): 6 class Test(object):
7 """ 7 """
8 Base class for tests that can be retried after deapplying a previously 8 Base class for tests that can be retried after deapplying a previously
9 applied patch. 9 applied patch.
10 """ 10 """
(...skipping 507 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 name = 'mojo_python_tests' 518 name = 'mojo_python_tests'
519 519
520 def run_step(self, api, suffix, cmd_args, **kwargs): 520 def run_step(self, api, suffix, cmd_args, **kwargs):
521 return api.python(self._step_name(suffix), 521 return api.python(self._step_name(suffix),
522 api.path['checkout'].join('mojo', 'tools', 522 api.path['checkout'].join('mojo', 'tools',
523 'run_mojo_python_tests.py'), 523 'run_mojo_python_tests.py'),
524 cmd_args, 524 cmd_args,
525 **kwargs) 525 **kwargs)
526 526
527 527
528 class MojoPythonBindingsTests(PythonBasedTest): # pylint: disable=W0232
529 name = 'mojo_python_bindings_tests'
530
531 def run_step(self, api, suffix, cmd_args, **kwargs):
532 component = api.chromium.c.gyp_env.GYP_DEFINES.get('component', None)
533 # Python modules are not build for the component build.
534 if component == 'shared_library':
535 return None
536 args = cmd_args
537 args.extend(['--build-dir', api.chromium.c.build_dir])
538 return api.python(
539 self._step_name(suffix),
540 api.path['checkout'].join('mojo', 'tools',
541 'run_mojo_python_bindings_tests.py'),
542 args,
543 **kwargs)
544
545
546 class PrintPreviewTests(PythonBasedTest): # pylint: disable=W032 528 class PrintPreviewTests(PythonBasedTest): # pylint: disable=W032
547 name = 'print_preview_tests' 529 name = 'print_preview_tests'
548 530
549 def run_step(self, api, suffix, cmd_args, **kwargs): 531 def run_step(self, api, suffix, cmd_args, **kwargs):
550 platform_arg = '.'.join(['browser_test', 532 platform_arg = '.'.join(['browser_test',
551 api.platform.normalize_platform_name(api.platform.name)]) 533 api.platform.normalize_platform_name(api.platform.name)])
552 args = cmd_args 534 args = list(cmd_args)
553 path = api.path['checkout'].join( 535 path = api.path['checkout'].join(
554 'webkit', 'tools', 'layout_tests', 'run_webkit_tests.py') 536 'webkit', 'tools', 'layout_tests', 'run_webkit_tests.py')
555 args.extend(['--platform', platform_arg]) 537 args.extend(['--platform', platform_arg])
556 538
557 # This is similar to how api.chromium.run_telemetry_test() sets the 539 # This is similar to how api.chromium.run_telemetry_test() sets the
558 # environment variable for the sandbox. 540 # environment variable for the sandbox.
559 env = {} 541 env = {}
560 if api.platform.is_linux: 542 if api.platform.is_linux:
561 env['CHROME_DEVEL_SANDBOX'] = api.path.join( 543 env['CHROME_DEVEL_SANDBOX'] = api.path.join(
562 '/opt', 'chromium', 'chrome_sandbox') 544 '/opt', 'chromium', 'chrome_sandbox')
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
783 GTestTest('crypto_unittests'), 765 GTestTest('crypto_unittests'),
784 GTestTest('gfx_unittests'), 766 GTestTest('gfx_unittests'),
785 GTestTest('url_unittests'), 767 GTestTest('url_unittests'),
786 GTestTest('content_unittests'), 768 GTestTest('content_unittests'),
787 GTestTest('net_unittests'), 769 GTestTest('net_unittests'),
788 GTestTest('ui_unittests'), 770 GTestTest('ui_unittests'),
789 GTestTest('ui_ios_unittests'), 771 GTestTest('ui_ios_unittests'),
790 GTestTest('sync_unit_tests'), 772 GTestTest('sync_unit_tests'),
791 GTestTest('sql_unittests'), 773 GTestTest('sql_unittests'),
792 ] 774 ]
OLDNEW
« no previous file with comments | « scripts/slave/recipe_modules/chromium/chromium_linux.py ('k') | scripts/slave/recipes/chromium.expected/buildnumber_zero.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698