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

Side by Side Diff: build/android/test_runner.py

Issue 2237553003: (Reland) Added tombstones in instrumentation tests results. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 4 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 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright 2013 The Chromium Authors. All rights reserved. 3 # Copyright 2013 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 """Runs all types of tests from one unified interface.""" 7 """Runs all types of tests from one unified interface."""
8 8
9 import argparse 9 import argparse
10 import collections 10 import collections
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 help='Factor by which timeouts should be scaled.') 420 help='Factor by which timeouts should be scaled.')
421 group.add_argument('--strict-mode', dest='strict_mode', default='testing', 421 group.add_argument('--strict-mode', dest='strict_mode', default='testing',
422 help='StrictMode command-line flag set on the device, ' 422 help='StrictMode command-line flag set on the device, '
423 'death/testing to kill the process, off to stop ' 423 'death/testing to kill the process, off to stop '
424 'checking, flash to flash only. Default testing.') 424 'checking, flash to flash only. Default testing.')
425 group.add_argument('--regenerate-goldens', dest='regenerate_goldens', 425 group.add_argument('--regenerate-goldens', dest='regenerate_goldens',
426 action='store_true', 426 action='store_true',
427 help='Causes the render tests to not fail when a check' 427 help='Causes the render tests to not fail when a check'
428 'fails or the golden image is missing but to render' 428 'fails or the golden image is missing but to render'
429 'the view and carry on.') 429 'the view and carry on.')
430 group.add_argument('--store-tombstones', dest='store_tombstones',
431 action='store_true',
432 help='Add tombstones in results if crash.')
430 433
431 AddCommonOptions(parser) 434 AddCommonOptions(parser)
432 AddDeviceOptions(parser) 435 AddDeviceOptions(parser)
433 AddRemoteDeviceOptions(parser) 436 AddRemoteDeviceOptions(parser)
434 437
435 438
436 def AddJUnitTestOptions(parser): 439 def AddJUnitTestOptions(parser):
437 """Adds junit test options to |parser|.""" 440 """Adds junit test options to |parser|."""
438 441
439 group = parser.add_argument_group('JUnit Test Options') 442 group = parser.add_argument_group('JUnit Test Options')
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after
1007 if e.is_infra_error: 1010 if e.is_infra_error:
1008 return constants.INFRA_EXIT_CODE 1011 return constants.INFRA_EXIT_CODE
1009 return constants.ERROR_EXIT_CODE 1012 return constants.ERROR_EXIT_CODE
1010 except: # pylint: disable=W0702 1013 except: # pylint: disable=W0702
1011 logging.exception('Unrecognized error occurred.') 1014 logging.exception('Unrecognized error occurred.')
1012 return constants.ERROR_EXIT_CODE 1015 return constants.ERROR_EXIT_CODE
1013 1016
1014 1017
1015 if __name__ == '__main__': 1018 if __name__ == '__main__':
1016 sys.exit(main()) 1019 sys.exit(main())
OLDNEW
« no previous file with comments | « build/android/pylib/local/device/local_device_instrumentation_test_run.py ('k') | build/android/test_runner.pydeps » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698