From 819538704af1c371ab238d11c40efaa182792633 Mon Sep 17 00:00:00 2001 From: Jonah Williams Date: Mon, 22 Jul 2019 17:08:42 -0700 Subject: [PATCH] fix devicelab tests (#36717) --- dev/devicelab/lib/tasks/perf_tests.dart | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/dev/devicelab/lib/tasks/perf_tests.dart b/dev/devicelab/lib/tasks/perf_tests.dart index e5fc3205f3..cc499cd794 100644 --- a/dev/devicelab/lib/tasks/perf_tests.dart +++ b/dev/devicelab/lib/tasks/perf_tests.dart @@ -231,7 +231,9 @@ class WebCompileTest { '-v', '--release', '--no-pub', - ]); + ], environment: { + 'FLUTTER_WEB': 'true', + }); final String output = '${flutterDirectory.path}/examples/hello_world/build/web/main.dart.js'; await _measureSize('hello_world', output, metrics); return null; @@ -243,7 +245,9 @@ class WebCompileTest { '-v', '--release', '--no-pub', - ]); + ], environment: { + 'FLUTTER_WEB': 'true', + }); final String output = '${flutterDirectory.path}/examples/flutter_gallery/build/web/main.dart.js'; await _measureSize('flutter_gallery', output, metrics); return null; @@ -262,7 +266,9 @@ class WebCompileTest { '-v', '--release', '--no-pub', - ]); + ], environment: { + 'FLUTTER_WEB': 'true', + }); await _measureSize('basic_material_app', path.join(sampleDir.path, 'build/web/main.dart.js'), metrics); }); });