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

Unified Diff: dart/tools/testing/dart/test_progress.dart

Issue 10905208: Add --step_name option to test.dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review commens Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « dart/tools/testing/dart/test_options.dart ('k') | dart/utils/compiler/buildbot.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/tools/testing/dart/test_progress.dart
diff --git a/dart/tools/testing/dart/test_progress.dart b/dart/tools/testing/dart/test_progress.dart
index 8066899209c7e1e3cad83f0a429642c4b0ca209c..7b99f678cd4627d3d0e3bfd3d539f532feb5d629 100644
--- a/dart/tools/testing/dart/test_progress.dart
+++ b/dart/tools/testing/dart/test_progress.dart
@@ -340,6 +340,8 @@ class StatusProgressIndicator extends ProgressIndicator {
class BuildbotProgressIndicator extends ProgressIndicator {
+ static String stepName;
+
BuildbotProgressIndicator(Date startTime, bool printTiming)
: super(startTime, printTiming);
@@ -359,15 +361,8 @@ class BuildbotProgressIndicator extends ProgressIndicator {
void _printFailureSummary() {
if (!_failureSummary.isEmpty()) {
- // We need to create a unique name for each step, otherwise, the
- // build bot will show the same failure when several steps
- // fail. We don't know the name of the current step as it is
- // printed by the program invoking this.
- // TODO(ahe): Pass in the step name as an option, and let
- // test.py take care of printing the steps.
- var name = 'failures ($_startTime)';
print('@@@STEP_FAILURE@@@');
- print('@@@BUILD_STEP $name@@@');
+ print('@@@BUILD_STEP $stepName failures@@@');
}
super._printFailureSummary();
}
« no previous file with comments | « dart/tools/testing/dart/test_options.dart ('k') | dart/utils/compiler/buildbot.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698