Add purge-persistent-cache option to run and drive (#62221)

Fixes https://github.com/flutter/flutter/issues/39526

Needs https://github.com/flutter/engine/pull/20013 to land and roll first.
This commit is contained in:
Yuqian Li
2020-07-29 12:24:39 -07:00
committed by GitHub
parent 0c3b0c5193
commit 22bf19cece
8 changed files with 25 additions and 0 deletions

View File

@@ -619,6 +619,11 @@ void main() {
'--cache-sksl',
() => debuggingOptions.cacheSkSL,
);
testOptionThatDefaultsToFalse(
'--purge-persistent-cache',
() => debuggingOptions.purgePersistentCache,
);
});
});

View File

@@ -249,6 +249,7 @@ void main() {
'--ez', 'endless-trace-buffer', 'true',
'--ez', 'dump-skp-on-shader-compilation', 'true',
'--ez', 'cache-sksl', 'true',
'--ez', 'purge-persistent-cache', 'true',
'--ez', 'enable-checked-mode', 'true',
'--ez', 'verify-entry-points', 'true',
'--ez', 'start-paused', 'true',
@@ -277,6 +278,7 @@ void main() {
endlessTraceBuffer: true,
dumpSkpOnShaderCompilation: true,
cacheSkSL: true,
purgePersistentCache: true,
useTestFonts: true,
verboseSystemLogs: true,
),

View File

@@ -329,6 +329,7 @@ void main() {
'--dump-skp-on-shader-compilation',
'--verbose-logging',
'--cache-sksl',
'--purge-persistent-cache',
].join(' '),
], environment: const <String, String>{
'PATH': '/usr/bin:null',
@@ -382,6 +383,7 @@ void main() {
endlessTraceBuffer: true,
dumpSkpOnShaderCompilation: true,
cacheSkSL: true,
purgePersistentCache: true,
verboseSystemLogs: true,
),
platformArgs: <String, dynamic>{},