mirror of
https://github.com/dart-lang/sdk
synced 2024-09-16 00:09:49 +00:00
[infra] Fix deflaking in test.dart
Change-Id: I6f04d41097defa889fe62566f675ec834a3f0a52 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/126642 Auto-Submit: Karl Klose <karlklose@google.com> Reviewed-by: William Hesse <whesse@google.com> Commit-Queue: Karl Klose <karlklose@google.com>
This commit is contained in:
parent
2a13b1fe26
commit
7c3b2b75c8
|
@ -555,10 +555,6 @@ void main(List<String> args) async {
|
|||
}
|
||||
}
|
||||
}
|
||||
// Deflake results of the tests if required.
|
||||
if (options["deflake"]) {
|
||||
await deflake(outDirectory, configurationsToRun, options.rest);
|
||||
}
|
||||
// Write out the merged results for the builders.
|
||||
if (needsMerge || needsConfigurationOverride) {
|
||||
await new File("${outDirectory.path}/previous.json").writeAsString(
|
||||
|
@ -569,6 +565,10 @@ void main(List<String> args) async {
|
|||
await new File("${outDirectory.path}/flaky.json").writeAsString(
|
||||
mergedFlaky.values.map((data) => jsonEncode(data) + "\n").join(""));
|
||||
}
|
||||
// Deflake results of the tests if required.
|
||||
if (options["deflake"]) {
|
||||
await deflake(outDirectory, configurationsToRun, options.rest);
|
||||
}
|
||||
// Write out the final comparison.
|
||||
print("".padLeft(80, "="));
|
||||
print("Test Results");
|
||||
|
|
Loading…
Reference in a new issue