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

Side by Side Diff: tools-webrtc/mb/mb.py

Issue 2861043002: Add --retry_failed=3 flag to gtest-parallel. (Closed)
Patch Set: Created 3 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 | « no previous file | tools-webrtc/mb/mb_unittest.py » ('j') | 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 (c) 2016 The WebRTC project authors. All Rights Reserved. 2 # Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
3 # 3 #
4 # Use of this source code is governed by a BSD-style license 4 # Use of this source code is governed by a BSD-style license
5 # that can be found in the LICENSE file in the root of the source 5 # that can be found in the LICENSE file in the root of the source
6 # tree. An additional intellectual property rights grant can be found 6 # tree. An additional intellectual property rights grant can be found
7 # in the file PATENTS. All contributing project authors may 7 # in the file PATENTS. All contributing project authors may
8 # be found in the AUTHORS file in the root of the source tree. 8 # be found in the AUTHORS file in the root of the source tree.
9 9
10 """MB - the Meta-Build wrapper around GYP and GN 10 """MB - the Meta-Build wrapper around GYP and GN
(...skipping 1084 matching lines...) Expand 10 before | Expand all | Expand 10 after
1095 sep = '\\' if self.platform == 'win32' else '/' 1095 sep = '\\' if self.platform == 'win32' else '/'
1096 output_dir = '${ISOLATED_OUTDIR}' + sep + 'test_logs' 1096 output_dir = '${ISOLATED_OUTDIR}' + sep + 'test_logs'
1097 gtest_parallel_wrapper = [ 1097 gtest_parallel_wrapper = [
1098 '../../tools-webrtc/gtest-parallel-wrapper.py', 1098 '../../tools-webrtc/gtest-parallel-wrapper.py',
1099 '--output_dir=%s' % output_dir, 1099 '--output_dir=%s' % output_dir,
1100 '--gtest_color=no', 1100 '--gtest_color=no',
1101 # We tell gtest-parallel to interrupt the test after 900 seconds, 1101 # We tell gtest-parallel to interrupt the test after 900 seconds,
1102 # so it can exit cleanly and report results, instead of being 1102 # so it can exit cleanly and report results, instead of being
1103 # interrupted by swarming and not reporting anything. 1103 # interrupted by swarming and not reporting anything.
1104 '--timeout=900', 1104 '--timeout=900',
1105 '--retry_failed=3',
1105 ] 1106 ]
1106 1107
1107 asan = 'is_asan=true' in vals['gn_args'] 1108 asan = 'is_asan=true' in vals['gn_args']
1108 msan = 'is_msan=true' in vals['gn_args'] 1109 msan = 'is_msan=true' in vals['gn_args']
1109 tsan = 'is_tsan=true' in vals['gn_args'] 1110 tsan = 'is_tsan=true' in vals['gn_args']
1110 1111
1111 executable_prefix = '.\\' if self.platform == 'win32' else './' 1112 executable_prefix = '.\\' if self.platform == 'win32' else './'
1112 executable_suffix = '.exe' if self.platform == 'win32' else '' 1113 executable_suffix = '.exe' if self.platform == 'win32' else ''
1113 executable = executable_prefix + target + executable_suffix 1114 executable = executable_prefix + target + executable_suffix
1114 1115
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
1536 # Then check to see if the arg contains any metacharacters other than 1537 # Then check to see if the arg contains any metacharacters other than
1537 # double quotes; if it does, quote everything (including the double 1538 # double quotes; if it does, quote everything (including the double
1538 # quotes) for safety. 1539 # quotes) for safety.
1539 if any(a in UNSAFE_FOR_CMD for a in arg): 1540 if any(a in UNSAFE_FOR_CMD for a in arg):
1540 arg = ''.join('^' + a if a in ALL_META_CHARS else a for a in arg) 1541 arg = ''.join('^' + a if a in ALL_META_CHARS else a for a in arg)
1541 return arg 1542 return arg
1542 1543
1543 1544
1544 if __name__ == '__main__': 1545 if __name__ == '__main__':
1545 sys.exit(main(sys.argv[1:])) 1546 sys.exit(main(sys.argv[1:]))
OLDNEW
« no previous file with comments | « no previous file | tools-webrtc/mb/mb_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698