From b8bb6eff6b19fcf5d796865272f269de349a256a Mon Sep 17 00:00:00 2001 From: Jenn Magder Date: Wed, 11 Sep 2024 13:06:32 -0700 Subject: [PATCH] Zip and upload Xcode xcresults on scenario test failure (flutter/engine#55093) The `FLUTTER_ENGINE` has a `/` in it: `ci/ios_debug_unopt_sim`. ``` path.join(storePath, '$iosEngineVariant.zip'); ``` was resolving to `path_to_output/ci/ios_debug_unopt_sim.zip`. `path_to_output` existed, but the `ci` directory didn't: > zip error: Could not create output file (/Volumes/Work/s/w/ir/x/w/rc/flutter_logs_dir/ci/ios_debug_unopt_sim.zip) Change the output zip path to `path_to_output/ci_ios_debug_unopt_sim.zip` with an underscore instead. Fixes https://github.com/flutter/flutter/issues/154956 [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style --- engine/src/flutter/testing/scenario_app/bin/run_ios_tests.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/src/flutter/testing/scenario_app/bin/run_ios_tests.dart b/engine/src/flutter/testing/scenario_app/bin/run_ios_tests.dart index a72964e5a5..2e059bd4e6 100644 --- a/engine/src/flutter/testing/scenario_app/bin/run_ios_tests.dart +++ b/engine/src/flutter/testing/scenario_app/bin/run_ios_tests.dart @@ -382,7 +382,7 @@ String _zipAndStoreFailedTestResults({ required io.Directory resultBundle, required String storePath, }) { - final outputPath = path.join(storePath, '$iosEngineVariant.zip'); + final outputPath = path.join(storePath, '${iosEngineVariant.replaceAll('/', '_')}.zip'); final result = io.Process.runSync( 'zip', [