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

Side by Side Diff: tools/testing/dart/test_progress.dart

Issue 11308179: Add --build-directory option to test.py. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix test_runner_exit_code_script.dart to set a buildbot step name. Created 8 years 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
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #library("test_progress"); 5 #library("test_progress");
6 6
7 #import("dart:io"); 7 #import("dart:io");
8 #import("test_runner.dart"); 8 #import("test_runner.dart");
9 #import("test_suite.dart"); 9 #import("test_suite.dart");
10 #import("status_file_parser.dart"); 10 #import("status_file_parser.dart");
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 if (test.lastCommandOutput.unexpectedOutput) { 400 if (test.lastCommandOutput.unexpectedOutput) {
401 status = 'fail'; 401 status = 'fail';
402 } 402 }
403 var percent = ((_completedTests() / _foundTests) * 100).toInt().toString(); 403 var percent = ((_completedTests() / _foundTests) * 100).toInt().toString();
404 print('Done ${test.configurationString} ${test.displayName}: $status'); 404 print('Done ${test.configurationString} ${test.displayName}: $status');
405 print('@@@STEP_CLEAR@@@'); 405 print('@@@STEP_CLEAR@@@');
406 print('@@@STEP_TEXT@ $percent% +$_passedTests -$_failedTests @@@'); 406 print('@@@STEP_TEXT@ $percent% +$_passedTests -$_failedTests @@@');
407 } 407 }
408 408
409 void _printFailureSummary() { 409 void _printFailureSummary() {
410 if (!_failureSummary.isEmpty) { 410 if (!_failureSummary.isEmpty && stepName != null) {
411 print('@@@STEP_FAILURE@@@'); 411 print('@@@STEP_FAILURE@@@');
412 print('@@@BUILD_STEP $stepName failures@@@'); 412 print('@@@BUILD_STEP $stepName failures@@@');
413 } 413 }
414 super._printFailureSummary(); 414 super._printFailureSummary();
415 } 415 }
416 } 416 }
417 417
418 class DiffProgressIndicator extends ColorProgressIndicator { 418 class DiffProgressIndicator extends ColorProgressIndicator {
419 Map<String, List<String>> statusToConfigs = new Map<String, List<String>>(); 419 Map<String, List<String>> statusToConfigs = new Map<String, List<String>>();
420 420
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 print(''); 463 print('');
464 print('$config:'); 464 print('$config:');
465 statuses.sort((a, b) => a.compareTo(b)); 465 statuses.sort((a, b) => a.compareTo(b));
466 for (String status in statuses) { 466 for (String status in statuses) {
467 print(' $status'); 467 print(' $status');
468 } 468 }
469 }); 469 });
470 _printStatus(); 470 _printStatus();
471 } 471 }
472 } 472 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698