Always write devicelab test results to a file if the resultsPath option is present (#86393)

Some runs of DeviceLab performance tests are run without a gitBranch option, but
still must save their results to a local file.
This commit is contained in:
William Hesse 2021-07-14 07:00:26 +02:00 committed by GitHub
parent 7f741e9181
commit e01d327239
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -42,7 +42,7 @@ Future<void> runTasks(
print(const JsonEncoder.withIndent(' ').convert(result));
section('Finished task "$taskName"');
if (resultsPath != null && gitBranch != null) {
if (resultsPath != null) {
final Cocoon cocoon = Cocoon();
await cocoon.writeTaskResultToFile(
builderName: luciBuilder,