@@ -144,7 +144,7 @@ Future<void> _run(
144
144
if (await process.exitCode != 0 ) {
145
145
final String outputPath = _zipAndStoreFailedTestResults (
146
146
iosEngineVariant: iosEngineVariant,
147
- resultBundlePath : resultBundle.path ,
147
+ resultBundle : resultBundle,
148
148
storePath: dumpXcresultOnFailure,
149
149
);
150
150
io.stderr.writeln ('Failed test results are stored at $outputPath ' );
@@ -171,7 +171,7 @@ Future<void> _run(
171
171
if (await process.exitCode != 0 ) {
172
172
final String outputPath = _zipAndStoreFailedTestResults (
173
173
iosEngineVariant: iosEngineVariant,
174
- resultBundlePath : resultBundle.path ,
174
+ resultBundle : resultBundle,
175
175
storePath: dumpXcresultOnFailure,
176
176
);
177
177
io.stderr.writeln ('Failed test results are stored at $outputPath ' );
@@ -399,7 +399,7 @@ String _infoPlistFPathForImpeller(Engine engine) {
399
399
@useResult
400
400
String _zipAndStoreFailedTestResults ({
401
401
required String iosEngineVariant,
402
- required String resultBundlePath ,
402
+ required io. Directory resultBundle ,
403
403
required String storePath,
404
404
}) {
405
405
final outputPath = path.join (storePath, '$iosEngineVariant .zip' );
@@ -409,11 +409,12 @@ String _zipAndStoreFailedTestResults({
409
409
'-q' ,
410
410
'-r' ,
411
411
outputPath,
412
- resultBundlePath ,
412
+ resultBundle.path ,
413
413
],
414
414
);
415
415
if (result.exitCode != 0 ) {
416
416
throw Exception ('Failed to zip the test results: ${result .stderr }' );
417
417
}
418
+ resultBundle.deleteSync (recursive: true );
418
419
return outputPath;
419
420
}
0 commit comments