Force regeneration of platform-specific manifests before running performance tests (#151003)

Some performance tests run "flutter create" to generate platform-specific project configuration files for the test app.  These files may be further patched by the test script to apply settings such as the Impeller backend.

The manifests need to be deleted and recreated on each run so that settings applied by previous runs will not be used by the current run.
This commit is contained in:
Jason Simmons
2024-07-03 06:23:23 -07:00
committed by GitHub
parent b373fa2c6e
commit ea89f20eb5

View File

@@ -1324,6 +1324,10 @@ class PerfTest {
final String? localEngineSrcPath = localEngineSrcPathFromEnv;
if (createPlatforms.isNotEmpty) {
// Ensure that the platform-specific manifests are freshly created and
// do not contain any settings from previous runs.
await exec('git', <String>['clean', '-f', testDirectory]);
await flutter('create', options: <String>[
'--platforms',
createPlatforms.join(','),