Unverified Commit 44924e5c authored by Danny Tuppeny's avatar Danny Tuppeny Committed by GitHub

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.
parent ebd11970
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment