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

Side by Side Diff: scripts/slave/runtest.py

Issue 23532067: Pass '--verbose' and '--retries 0' flags to run_test_cases.py for ThreadSanitizer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build/
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 (c) 2012 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 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 tool to run a chrome test executable, used by the buildbot slaves. 6 """A tool to run a chrome test executable, used by the buildbot slaves.
7 7
8 When this is run, the current directory (cwd) should be the outer build 8 When this is run, the current directory (cwd) should be the outer build
9 directory (e.g., chrome-release/build/). 9 directory (e.g., chrome-release/build/).
10 10
(...skipping 1212 matching lines...) Expand 10 before | Expand all | Expand 10 after
1223 'content_browsertests', 1223 'content_browsertests',
1224 'interactive_ui_tests', 1224 'interactive_ui_tests',
1225 'net_unittests', 1225 'net_unittests',
1226 'unit_tests', 1226 'unit_tests',
1227 ] 1227 ]
1228 options.enable_lsan = (options.enable_lsan or 1228 options.enable_lsan = (options.enable_lsan or
1229 (options.factory_properties.get('lsan', False) and 1229 (options.factory_properties.get('lsan', False) and
1230 (options.factory_properties.get('lsan_run_all_tests', False) or 1230 (options.factory_properties.get('lsan_run_all_tests', False) or
1231 args[0] not in lsan_blacklist))) 1231 args[0] not in lsan_blacklist)))
1232 1232
1233 if (options.factory_properties.get('asan', False)): 1233 if options.factory_properties.get('asan', False):
1234 options.extra_sharding_args += ' --verbose' 1234 options.extra_sharding_args += ' --verbose'
1235 if options.factory_properties.get('tsan', False):
1236 # Print ThreadSanitizer reports.
1237 options.extra_sharding_args += ' --verbose'
1238 if options.sharding_args is None:
M-A Ruel 2013/09/13 15:16:25 Worth using default='' at the options instead.
Alexander Potapenko 2013/09/13 15:23:08 Yeah, I was thinking about that option, but didn't
1239 options.sharding_args = ''
1240 # Data races may be flaky, but we don't want to restart the test if there's
1241 # been a race report.
1242 options.sharding_args += '--retries 0'
1235 1243
1236 if (options.factory_properties.get('asan', False) or 1244 if (options.factory_properties.get('asan', False) or
1237 options.factory_properties.get('tsan', False) or options.enable_lsan): 1245 options.factory_properties.get('tsan', False) or options.enable_lsan):
1238 # Instruct GTK to use malloc while running ASan, TSan or LSan tests. 1246 # Instruct GTK to use malloc while running ASan, TSan or LSan tests.
1239 os.environ['G_SLICE'] = 'always-malloc' 1247 os.environ['G_SLICE'] = 'always-malloc'
1240 os.environ['NSS_DISABLE_ARENA_FREE_LIST'] = '1' 1248 os.environ['NSS_DISABLE_ARENA_FREE_LIST'] = '1'
1241 os.environ['NSS_DISABLE_UNLOAD'] = '1' 1249 os.environ['NSS_DISABLE_UNLOAD'] = '1'
1242 1250
1243 # TODO(glider): remove the symbolizer path once 1251 # TODO(glider): remove the symbolizer path once
1244 # https://code.google.com/p/address-sanitizer/issues/detail?id=134 is fixed. 1252 # https://code.google.com/p/address-sanitizer/issues/detail?id=134 is fixed.
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
1328 '%d new files were left in %s: Fix the tests to clean up themselves.' 1336 '%d new files were left in %s: Fix the tests to clean up themselves.'
1329 ) % ((new_temp_files - temp_files), tempfile.gettempdir()) 1337 ) % ((new_temp_files - temp_files), tempfile.gettempdir())
1330 # TODO(maruel): Make it an error soon. Not yet since I want to iron out all 1338 # TODO(maruel): Make it an error soon. Not yet since I want to iron out all
1331 # the remaining cases before. 1339 # the remaining cases before.
1332 #result = 1 1340 #result = 1
1333 return result 1341 return result
1334 1342
1335 1343
1336 if '__main__' == __name__: 1344 if '__main__' == __name__:
1337 sys.exit(main()) 1345 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698