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

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

Issue 10855095: Collect profiling data for XP Perf(dbg). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build/
Patch Set: Created 8 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 | 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 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 398
399 399
400 def upload_profiling_data(options, args): 400 def upload_profiling_data(options, args):
401 """Using the target build configuration, archive the profiling data to Google 401 """Using the target build configuration, archive the profiling data to Google
402 Storage. 402 Storage.
403 """ 403 """
404 # args[1] has --gtest-filter argument. 404 # args[1] has --gtest-filter argument.
405 if len(args) < 2: 405 if len(args) < 2:
406 return 0 406 return 0
407 407
408 if (options.build_properties.get('buildername') != 'XP Perf (1)' or 408 if (options.build_properties.get('buildername') != 'XP Perf (dbg)' or
409 options.build_properties.get('mastername') != 'chromium.perf' or 409 options.build_properties.get('mastername') != 'chromium.perf' or
410 not options.build_properties.get('got_revision')): 410 not options.build_properties.get('got_revision')):
411 return 0 411 return 0
412 412
413 gtest_filter = args[1] 413 gtest_filter = args[1]
414 if (gtest_filter is None or 414 if (gtest_filter is None or
415 gtest_filter.find('StartupTest.*:ShutdownTest.*') == -1): 415 gtest_filter.find('StartupTest.*:ShutdownTest.*') == -1):
416 return 0 416 return 0
417 417
418 build_dir = os.path.normpath(os.path.abspath(options.build_dir)) 418 build_dir = os.path.normpath(os.path.abspath(options.build_dir))
(...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after
950 '%d new files were left in %s: Fix the tests to clean up themselves.' 950 '%d new files were left in %s: Fix the tests to clean up themselves.'
951 ) % ((new_temp_files - temp_files), tempfile.gettempdir()) 951 ) % ((new_temp_files - temp_files), tempfile.gettempdir())
952 # TODO(maruel): Make it an error soon. Not yet since I want to iron out all 952 # TODO(maruel): Make it an error soon. Not yet since I want to iron out all
953 # the remaining cases before. 953 # the remaining cases before.
954 #result = 1 954 #result = 1
955 return result 955 return result
956 956
957 957
958 if '__main__' == __name__: 958 if '__main__' == __name__:
959 sys.exit(main()) 959 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