emitEnsembleTestMachineReport function
Writes the suite JSON report through device→host transport.
Integration stdout cannot carry a multi-megabyte JSON line (syslog/logcat
truncates it, and Flutter prefixes flutter: so host parsers miss it).
Implementation
void emitEnsembleTestMachineReport(String jsonReport) {
if (!usesDeviceArtifactTransport) return;
emitEnsembleTestArtifact(
ensembleTestMachineResultRelativePath,
utf8.encode(jsonReport),
mimeType: 'application/json',
);
}