Set FLUTTER_TEST when spawning flutter_tester (#18907)

Otherwise on Windows these will fail as an unsupported platform when things try to read defaultTargetPlatform in flutter apps.
This commit is contained in:
Danny Tuppeny 2018-06-29 09:43:25 +01:00 committed by GitHub
parent ebd11970e2
commit 44924e5cf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -150,7 +150,10 @@ class FlutterTesterDevice extends Device {
printTrace(command.join(' '));
_isRunning = true;
_process = await processManager.start(command);
_process = await processManager.start(command,
environment: <String, String>{
'FLUTTER_TEST': 'true',
});
_process.exitCode.then((_) => _isRunning = false);
_process.stdout
.transform(utf8.decoder)