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 efb54b56faaf38d9a036efaa5be71609d82c79da
5 changes: 3 additions & 2 deletions testing/scenario_app/bin/run_ios_tests.dart
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ void main(List<String> args) async {
if (results.option('dump-xcresult-on-failure') case final String path) {
dumpXcresultOnFailurePath = path;
} else {
dumpXcresultOnFailurePath = io.Directory.systemTemp.createTempSync().path;
final dumpDir = io.Directory.systemTemp.createTempSync();
dumpXcresultOnFailurePath = dumpDir.path;
cleanup.add(() => dumpDir.delete(recursive: true));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@matanlurey it needs to be deleted between the Skia and Impeller run though, not at the end of running both.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yes, you are right. Thank you!

}

// Run the actual script.
Expand Down Expand Up @@ -369,6 +371,5 @@ String _zipAndStoreFailedTestResults({
if (result.exitCode != 0) {
throw Exception('Failed to zip the test results: ${result.stderr}');
}
resultBundle.deleteSync(recursive: true);
return outputPath;
}