@@ -144,7 +144,7 @@ Future<void> _run(
144144 if (await process.exitCode != 0 ) {
145145 final String outputPath = _zipAndStoreFailedTestResults (
146146 iosEngineVariant: iosEngineVariant,
147- resultBundlePath : resultBundle.path ,
147+ resultBundle : resultBundle,
148148 storePath: dumpXcresultOnFailure,
149149 );
150150 io.stderr.writeln ('Failed test results are stored at $outputPath ' );
@@ -171,7 +171,7 @@ Future<void> _run(
171171 if (await process.exitCode != 0 ) {
172172 final String outputPath = _zipAndStoreFailedTestResults (
173173 iosEngineVariant: iosEngineVariant,
174- resultBundlePath : resultBundle.path ,
174+ resultBundle : resultBundle,
175175 storePath: dumpXcresultOnFailure,
176176 );
177177 io.stderr.writeln ('Failed test results are stored at $outputPath ' );
@@ -399,7 +399,7 @@ String _infoPlistFPathForImpeller(Engine engine) {
399399@useResult
400400String _zipAndStoreFailedTestResults ({
401401 required String iosEngineVariant,
402- required String resultBundlePath ,
402+ required io. Directory resultBundle ,
403403 required String storePath,
404404}) {
405405 final outputPath = path.join (storePath, '$iosEngineVariant .zip' );
@@ -409,11 +409,12 @@ String _zipAndStoreFailedTestResults({
409409 '-q' ,
410410 '-r' ,
411411 outputPath,
412- resultBundlePath ,
412+ resultBundle.path ,
413413 ],
414414 );
415415 if (result.exitCode != 0 ) {
416416 throw Exception ('Failed to zip the test results: ${result .stderr }' );
417417 }
418+ resultBundle.deleteSync (recursive: true );
418419 return outputPath;
419420}
0 commit comments