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

Commit ab8b35f

Browse files
matanlureyjmagman
authored andcommitted
++
1 parent d6f2d36 commit ab8b35f

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

testing/scenario_app/bin/run_ios_tests.dart

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

283283
void _deleteAnyExistingDevices({required String deviceName}) {
284-
io.stderr
285-
.writeln('Deleting any existing simulator devices named $deviceName...');
284+
io.stderr.writeln(
285+
'Deleting any existing simulator devices named $deviceName...',
286+
);
286287

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

336337
// Create a temporary directory to store the test results.
337-
final result =
338-
io.Directory(scenarioPath).createTempSync('ios_scenario_xcresult');
338+
final result = io.Directory(scenarioPath).createTempSync(
339+
'ios_scenario_xcresult',
340+
);
339341
return (scenarioPath, result);
340342
}
341343

@@ -387,7 +389,11 @@ String _zipAndStoreFailedTestResults({
387389
],
388390
);
389391
if (result.exitCode != 0) {
390-
throw Exception('Failed to zip the test results: ${result.stderr}');
392+
throw Exception(
393+
'Failed to zip the test results (exit code = ${result.exitCode}).\n\n'
394+
'Stderr: ${result.stderr}\n\n'
395+
'Stdout: ${result.stdout}',
396+
);
391397
}
392398
return outputPath;
393399
}

0 commit comments

Comments
 (0)