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

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

Issue 3005013002: Added json result of test output to output debug directory. (Closed)
Patch Set: Added changes from Bill Created 3 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 unified diff | Download patch
« no previous file with comments | « tools/testing/dart/test_progress.dart ('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 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 import 'dart:async'; 5 import 'dart:async';
6 import 'dart:io'; 6 import 'dart:io';
7 import 'dart:convert'; 7 import 'dart:convert';
8 import 'dart:math' as math; 8 import 'dart:math' as math;
9 9
10 import 'configuration.dart'; 10 import 'configuration.dart';
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 /// will be written to this file. 437 /// will be written to this file.
438 /// 438 ///
439 /// This is useful for debugging flaky tests. When running on a buildbot, the 439 /// This is useful for debugging flaky tests. When running on a buildbot, the
440 /// file can be made visible in the waterfall UI. 440 /// file can be made visible in the waterfall UI.
441 static const flakyFileName = ".flaky.log"; 441 static const flakyFileName = ".flaky.log";
442 442
443 /// If test.py was invoked with '--write-test-outcome-log it will write 443 /// If test.py was invoked with '--write-test-outcome-log it will write
444 /// test outcomes to this file. 444 /// test outcomes to this file.
445 static const testOutcomeFileName = ".test-outcome.log"; 445 static const testOutcomeFileName = ".test-outcome.log";
446 446
447 /// If test.py was invoked with '--write-result-log it will write
448 /// test outcomes to this file in the '--output-directory'.
449 static const resultLogFileName = "result.log";
450
447 static void ensureExists(String filename, Configuration configuration) { 451 static void ensureExists(String filename, Configuration configuration) {
448 if (!configuration.listTests && !existsCache.doesFileExist(filename)) { 452 if (!configuration.listTests && !existsCache.doesFileExist(filename)) {
449 throw "'$filename' does not exist"; 453 throw "'$filename' does not exist";
450 } 454 }
451 } 455 }
452 456
453 static Path absolutePath(Path path) { 457 static Path absolutePath(Path path) {
454 if (!path.isAbsolute) { 458 if (!path.isAbsolute) {
455 return currentWorkingDirectory.join(path); 459 return currentWorkingDirectory.join(path);
456 } 460 }
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 } 533 }
530 if (path.length > WINDOWS_SHORTEN_PATH_LIMIT) { 534 if (path.length > WINDOWS_SHORTEN_PATH_LIMIT) {
531 ++shortNameCounter; 535 ++shortNameCounter;
532 var pathEnd = path.substring(path.length - WINDOWS_PATH_END_LENGTH); 536 var pathEnd = path.substring(path.length - WINDOWS_PATH_END_LENGTH);
533 path = "short${shortNameCounter}_$pathEnd"; 537 path = "short${shortNameCounter}_$pathEnd";
534 } 538 }
535 } 539 }
536 return path; 540 return path;
537 } 541 }
538 } 542 }
OLDNEW
« no previous file with comments | « tools/testing/dart/test_progress.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698