Fix skwasm tests (#145570)
Skwasm tests are now running as `bringup: true` in postsubmit, but failing. Let's get them fixed.
This commit is contained in:
@@ -93,7 +93,7 @@ class TestGoldenComparator {
|
||||
final Map<String, String> environment = <String, String>{
|
||||
// Chrome is the only supported browser currently.
|
||||
'FLUTTER_TEST_BROWSER': 'chrome',
|
||||
'FLUTTER_WEB_RENDERER': webRenderer == WebRendererMode.html ? 'html' : 'canvaskit',
|
||||
'FLUTTER_WEB_RENDERER': webRenderer.name,
|
||||
};
|
||||
return _processManager.start(command, environment: environment);
|
||||
}
|
||||
|
||||
@@ -238,15 +238,17 @@ class WebTestCompiler {
|
||||
'--extra-compiler-option=--multi-root-scheme=org-dartlang-app',
|
||||
'--extra-compiler-option=--multi-root=${projectDirectory.childDirectory('test').path}',
|
||||
'--extra-compiler-option=--multi-root=${outputDirectory.path}',
|
||||
'--extra-compiler-option=--enable-asserts',
|
||||
'--extra-compiler-option=--no-inlining',
|
||||
if (webRenderer == WebRendererMode.skwasm) ...<String>[
|
||||
'--extra-compiler-option=--import-shared-memory',
|
||||
'--extra-compiler-option=--shared-memory-max-pages=32768',
|
||||
],
|
||||
],
|
||||
...buildInfo.extraFrontEndOptions,
|
||||
for (final String dartDefine in dartDefines)
|
||||
'-D$dartDefine',
|
||||
|
||||
'-O1',
|
||||
'-O0',
|
||||
'-o',
|
||||
outputWasmFile.path,
|
||||
testFile.path, // dartfile
|
||||
@@ -257,8 +259,7 @@ class WebTestCompiler {
|
||||
processManager: _processManager,
|
||||
);
|
||||
|
||||
await processUtils.run(
|
||||
throwOnError: true,
|
||||
await processUtils.stream(
|
||||
compilationArgs,
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user