Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
++
  • Loading branch information
matanlurey authored and jmagman committed Sep 9, 2024
commit ab8b35fed7ac9cad8fa29cb7be773837b5eb8df5
16 changes: 11 additions & 5 deletions testing/scenario_app/bin/run_ios_tests.dart
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,9 @@ void _ensureSimulatorsRotateAutomaticallyForPlatformViewRotationTest() {
}

void _deleteAnyExistingDevices({required String deviceName}) {
io.stderr
.writeln('Deleting any existing simulator devices named $deviceName...');
io.stderr.writeln(
'Deleting any existing simulator devices named $deviceName...',
);

bool deleteSimulator() {
final result = io.Process.runSync(
Expand Down Expand Up @@ -334,8 +335,9 @@ void _createDevice({
));

// Create a temporary directory to store the test results.
final result =
io.Directory(scenarioPath).createTempSync('ios_scenario_xcresult');
final result = io.Directory(scenarioPath).createTempSync(
'ios_scenario_xcresult',
);
return (scenarioPath, result);
}

Expand Down Expand Up @@ -387,7 +389,11 @@ String _zipAndStoreFailedTestResults({
],
);
if (result.exitCode != 0) {
throw Exception('Failed to zip the test results: ${result.stderr}');
throw Exception(
'Failed to zip the test results (exit code = ${result.exitCode}).\n\n'
'Stderr: ${result.stderr}\n\n'
'Stdout: ${result.stdout}',
);
}
return outputPath;
}