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

Unified Diff: tools/test-runtime.dart

Issue 11364129: Added support for logging the output of failed flaky tests. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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
Index: tools/test-runtime.dart
diff --git a/tools/test-runtime.dart b/tools/test-runtime.dart
index b9663ffe0cab54ad2933118a25332976f3ff5e89..3bcdac3fea9d116dee37f0021bc4d13c444d039e 100755
--- a/tools/test-runtime.dart
+++ b/tools/test-runtime.dart
@@ -11,6 +11,7 @@
#library("test");
#import("dart:io");
+#import("testing/dart/test_progress.dart");
ricow1 2012/11/08 09:49:13 why do we need this?
kustermann 2012/11/08 10:24:41 Because the FAILED_FLAKY_TESTS_LOGFILE constant is
ricow1 2012/11/08 10:32:51 Alternatively put a small utility function inside
kustermann 2012/11/08 12:05:34 Done.
#import("testing/dart/test_runner.dart");
#import("testing/dart/test_options.dart");
#import("testing/dart/test_suite.dart");
@@ -50,7 +51,14 @@ main() {
var verbose = firstConf['verbose'];
var printTiming = firstConf['time'];
var listTests = firstConf['list'];
-
+ var appendFlakyLog = firstConf['append_flaky_log'];
ricow1 2012/11/08 09:49:13 no need to actually extract this, just use it in t
kustermann 2012/11/08 10:24:41 Done.
+
+ if (!appendFlakyLog) {
+ var file = new File(FAILED_FLAKY_TESTS_LOGFILE);
+ if (file.existsSync()) {
+ file.deleteSync();
+ }
+ }
// Print the configurations being run by this execution of
// test.dart. However, don't do it if the silent progress indicator
// is used. This is only needed because of the junit tests.

Powered by Google App Engine
This is Rietveld 408576698