Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 50b8c00

Browse files
committed
++
1 parent cc79c89 commit 50b8c00

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

testing/scenario_app/bin/run_ios_tests.dart

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,9 @@ void _ensureSimulatorsRotateAutomaticallyForPlatformViewRotationTest() {
280280
}
281281

282282
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+
);
285286

286287
bool deleteSimulator() {
287288
final result = io.Process.runSync(
@@ -333,8 +334,9 @@ void _createDevice({
333334
));
334335

335336
// 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+
);
338340
return (scenarioPath, result);
339341
}
340342

@@ -413,6 +415,9 @@ String _infoPlistFPathForImpeller(Engine engine) {
413415
'Scenarios',
414416
'Info_Impeller.plist',
415417
);
418+
if (!io.File(infoPath).existsSync()) {
419+
throw Exception('Info_Impeller.plist does not exist at $infoPath');
420+
}
416421
return 'INFOPLIST_FILE=$infoPath';
417422
}
418423

@@ -433,7 +438,11 @@ String _zipAndStoreFailedTestResults({
433438
],
434439
);
435440
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+
);
437446
}
438447
return outputPath;
439448
}

0 commit comments

Comments
 (0)