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

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

Issue 373223003: Implemented parsing of the ignored failing tests spec and ignoring respective failures. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Fixed a typo Created 6 years, 5 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 | « scripts/common/unittests/gtest_utils_test.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 (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 used to run a Chrome test executable and process the output. 6 """A tool used to run a Chrome test executable and process the output.
7 7
8 This script is used by the buildbot slaves. It must be run from the outer 8 This script is used by the buildbot slaves. It must be run from the outer
9 build directory, e.g. chrome-release/build/. 9 build directory, e.g. chrome-release/build/.
10 10
(...skipping 994 matching lines...) Expand 10 before | Expand all | Expand 10 after
1005 command) 1005 command)
1006 result = _RunGTestCommand(command, extra_env, pipes=pipes, 1006 result = _RunGTestCommand(command, extra_env, pipes=pipes,
1007 results_tracker=results_tracker) 1007 results_tracker=results_tracker)
1008 finally: 1008 finally:
1009 if http_server: 1009 if http_server:
1010 http_server.StopServer() 1010 http_server.StopServer()
1011 if _UsingGtestJson(options): 1011 if _UsingGtestJson(options):
1012 _UploadGtestJsonSummary(json_file_name, 1012 _UploadGtestJsonSummary(json_file_name,
1013 options.build_properties, 1013 options.build_properties,
1014 test_exe) 1014 test_exe)
1015 results_tracker.ProcessJSONFile() 1015 results_tracker.ProcessJSONFile(options.build_dir)
1016 1016
1017 if options.generate_json_file: 1017 if options.generate_json_file:
1018 if not _GenerateJSONForTestResults(options, results_tracker): 1018 if not _GenerateJSONForTestResults(options, results_tracker):
1019 return 1 1019 return 1
1020 1020
1021 if options.annotate: 1021 if options.annotate:
1022 annotation_utils.annotate( 1022 annotation_utils.annotate(
1023 options.test_type, result, results_tracker, 1023 options.test_type, result, results_tracker,
1024 options.factory_properties.get('full_test_name'), 1024 options.factory_properties.get('full_test_name'),
1025 perf_dashboard_id=options.perf_dashboard_id) 1025 perf_dashboard_id=options.perf_dashboard_id)
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
1279 results_tracker=results_tracker) 1279 results_tracker=results_tracker)
1280 finally: 1280 finally:
1281 if http_server: 1281 if http_server:
1282 http_server.StopServer() 1282 http_server.StopServer()
1283 if start_xvfb: 1283 if start_xvfb:
1284 xvfb.StopVirtualX(slave_name) 1284 xvfb.StopVirtualX(slave_name)
1285 if _UsingGtestJson(options): 1285 if _UsingGtestJson(options):
1286 _UploadGtestJsonSummary(json_file_name, 1286 _UploadGtestJsonSummary(json_file_name,
1287 options.build_properties, 1287 options.build_properties,
1288 test_exe) 1288 test_exe)
1289 results_tracker.ProcessJSONFile() 1289 results_tracker.ProcessJSONFile(options.build_dir)
1290 1290
1291 if options.generate_json_file: 1291 if options.generate_json_file:
1292 if not _GenerateJSONForTestResults(options, results_tracker): 1292 if not _GenerateJSONForTestResults(options, results_tracker):
1293 return 1 1293 return 1
1294 1294
1295 if options.annotate: 1295 if options.annotate:
1296 annotation_utils.annotate( 1296 annotation_utils.annotate(
1297 options.test_type, result, results_tracker, 1297 options.test_type, result, results_tracker,
1298 options.factory_properties.get('full_test_name'), 1298 options.factory_properties.get('full_test_name'),
1299 perf_dashboard_id=options.perf_dashboard_id) 1299 perf_dashboard_id=options.perf_dashboard_id)
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
1398 command = _GenerateRunIsolatedCommand(build_dir, test_exe_path, options, 1398 command = _GenerateRunIsolatedCommand(build_dir, test_exe_path, options,
1399 command) 1399 command)
1400 result = _RunGTestCommand(command, extra_env, results_tracker) 1400 result = _RunGTestCommand(command, extra_env, results_tracker)
1401 finally: 1401 finally:
1402 if http_server: 1402 if http_server:
1403 http_server.StopServer() 1403 http_server.StopServer()
1404 if _UsingGtestJson(options): 1404 if _UsingGtestJson(options):
1405 _UploadGtestJsonSummary(json_file_name, 1405 _UploadGtestJsonSummary(json_file_name,
1406 options.build_properties, 1406 options.build_properties,
1407 test_exe) 1407 test_exe)
1408 results_tracker.ProcessJSONFile() 1408 results_tracker.ProcessJSONFile(options.build_dir)
1409 1409
1410 if options.enable_pageheap: 1410 if options.enable_pageheap:
1411 slave_utils.SetPageHeap(build_dir, 'chrome.exe', False) 1411 slave_utils.SetPageHeap(build_dir, 'chrome.exe', False)
1412 1412
1413 if options.generate_json_file: 1413 if options.generate_json_file:
1414 if not _GenerateJSONForTestResults(options, results_tracker): 1414 if not _GenerateJSONForTestResults(options, results_tracker):
1415 return 1 1415 return 1
1416 1416
1417 if options.annotate: 1417 if options.annotate:
1418 annotation_utils.annotate( 1418 annotation_utils.annotate(
(...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after
1892 finally: 1892 finally:
1893 if did_launch_dbus: 1893 if did_launch_dbus:
1894 # It looks like the command line argument --exit-with-session 1894 # It looks like the command line argument --exit-with-session
1895 # isn't working to clean up the spawned dbus-daemon. Kill it 1895 # isn't working to clean up the spawned dbus-daemon. Kill it
1896 # manually. 1896 # manually.
1897 _ShutdownDBus() 1897 _ShutdownDBus()
1898 1898
1899 1899
1900 if '__main__' == __name__: 1900 if '__main__' == __name__:
1901 sys.exit(main()) 1901 sys.exit(main())
OLDNEW
« no previous file with comments | « scripts/common/unittests/gtest_utils_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698