[devicelab] Only upload results on master (#87125)

This commit is contained in:
Casey Hillers
2021-07-27 12:49:05 -07:00
committed by GitHub
parent 889ab8381e
commit 79f377dabe
2 changed files with 29 additions and 1 deletions

View File

@@ -98,7 +98,10 @@ class Cocoon {
resultsJson['NewStatus'] = testStatus;
}
resultsJson['TestFlaky'] = isTestFlaky ?? false;
await _sendUpdateTaskRequest(resultsJson);
const List<String> supportedBranches = <String>['master'];
if(supportedBranches.contains(resultsJson['CommitBranch'])) {
await _sendUpdateTaskRequest(resultsJson);
}
}
/// Write the given parameters into an update task request and store the JSON in [resultsPath].