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

Side by Side Diff: mojo/tools/mojob.py

Issue 1147443002: Only run the NaCl tests if the test type is DEFAULT, UNIT, or app. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebased Created 5 years, 7 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
« no previous file with comments | « mojo/tools/get_test_list.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright 2014 The Chromium Authors. All rights reserved. 2 # Copyright 2014 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """A simple script to make building/testing Mojo components easier.""" 6 """A simple script to make building/testing Mojo components easier."""
7 7
8 import argparse 8 import argparse
9 from copy import deepcopy 9 from copy import deepcopy
10 import logging 10 import logging
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 default=False, action='store_true') 274 default=False, action='store_true')
275 275
276 perftest_parser = subparsers.add_parser('perftest', parents=[parent_parser], 276 perftest_parser = subparsers.add_parser('perftest', parents=[parent_parser],
277 help='Run perf tests (does not build).') 277 help='Run perf tests (does not build).')
278 perftest_parser.set_defaults(func=_perftest) 278 perftest_parser.set_defaults(func=_perftest)
279 279
280 pytest_parser = subparsers.add_parser('pytest', parents=[parent_parser], 280 pytest_parser = subparsers.add_parser('pytest', parents=[parent_parser],
281 help='Run Python unit tests (does not build).') 281 help='Run Python unit tests (does not build).')
282 pytest_parser.set_defaults(func=_pytest) 282 pytest_parser.set_defaults(func=_pytest)
283 283
284 nacltest_parser = subparsers.add_parser('nacltest', parents=[parent_parser],
285 help='Run NaCl unit tests (does not build).')
286 nacltest_parser.set_defaults(func=lambda config: 0)
287
288 args = parser.parse_args() 284 args = parser.parse_args()
289 global _verbose_count 285 global _verbose_count
290 _verbose_count = args.verbose_count 286 _verbose_count = args.verbose_count
291 InitLogging(_verbose_count) 287 InitLogging(_verbose_count)
292 288
293 return args.func(_args_to_config(args)) 289 return args.func(_args_to_config(args))
294 290
295 291
296 if __name__ == '__main__': 292 if __name__ == '__main__':
297 sys.exit(main()) 293 sys.exit(main())
OLDNEW
« no previous file with comments | « mojo/tools/get_test_list.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698