From 1bef312fb124d0ca7f61f94723c3a025f184079c Mon Sep 17 00:00:00 2001 From: Ian Hickson Date: Wed, 29 Nov 2017 15:49:50 -0800 Subject: [PATCH] Actually run "flutter create" before compiling the default app... (#13246) --- dev/devicelab/lib/tasks/perf_tests.dart | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dev/devicelab/lib/tasks/perf_tests.dart b/dev/devicelab/lib/tasks/perf_tests.dart index c62bdfe424..4986de7e60 100644 --- a/dev/devicelab/lib/tasks/perf_tests.dart +++ b/dev/devicelab/lib/tasks/perf_tests.dart @@ -85,6 +85,13 @@ TaskFunction createBasicMaterialCompileTest() { if (await sampleDir.exists()) rmTree(sampleDir); + await inDirectory(Directory.systemTemp, () async { + await flutter('create', options: [sampleAppName]); + }); + + if (!(await sampleDir.exists())) + throw 'Failed to create default Flutter app in ${sampleDir.path}'; + return new CompileTest(sampleDir.path).run(); }; }