Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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-json-log it will write | |
| 448 /// test outcomes to this file in '--the debug-output-directory'. | |
| 449 static const testResultFileName = "result.log"; | |
|
Bill Hesse
2017/09/01 11:56:14
resultLogName
mkroghj
2017/09/04 10:43:35
Acknowledged.
| |
| 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 Loading... | |
| 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 } |
| OLD | NEW |