[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:
Karl Klose 2019-12-04 08:39:09 +00:00 committed by commit-bot@chromium.org
parent 2a13b1fe26
commit 7c3b2b75c8

View file

@ -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");