@@ -280,8 +280,9 @@ void _ensureSimulatorsRotateAutomaticallyForPlatformViewRotationTest() {
280
280
}
281
281
282
282
void _deleteAnyExistingDevices ({required String deviceName}) {
283
- io.stderr
284
- .writeln ('Deleting any existing simulator devices named $deviceName ...' );
283
+ io.stderr.writeln (
284
+ 'Deleting any existing simulator devices named $deviceName ...' ,
285
+ );
285
286
286
287
bool deleteSimulator () {
287
288
final result = io.Process .runSync (
@@ -333,8 +334,9 @@ void _createDevice({
333
334
));
334
335
335
336
// Create a temporary directory to store the test results.
336
- final result =
337
- io.Directory (scenarioPath).createTempSync ('ios_scenario_xcresult' );
337
+ final result = io.Directory (scenarioPath).createTempSync (
338
+ 'ios_scenario_xcresult' ,
339
+ );
338
340
return (scenarioPath, result);
339
341
}
340
342
@@ -413,6 +415,9 @@ String _infoPlistFPathForImpeller(Engine engine) {
413
415
'Scenarios' ,
414
416
'Info_Impeller.plist' ,
415
417
);
418
+ if (! io.File (infoPath).existsSync ()) {
419
+ throw Exception ('Info_Impeller.plist does not exist at $infoPath ' );
420
+ }
416
421
return 'INFOPLIST_FILE=$infoPath ' ;
417
422
}
418
423
@@ -433,7 +438,11 @@ String _zipAndStoreFailedTestResults({
433
438
],
434
439
);
435
440
if (result.exitCode != 0 ) {
436
- throw Exception ('Failed to zip the test results: ${result .stderr }' );
441
+ throw Exception (
442
+ 'Failed to zip the test results (exit code = ${result .exitCode }).\n\n '
443
+ 'Stderr: ${result .stderr }\n\n '
444
+ 'Stdout: ${result .stdout }' ,
445
+ );
437
446
}
438
447
return outputPath;
439
448
}
0 commit comments