mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
Fix issues found running tests
//mobile/flutter/tests/app:basic_runner_test_* during a google3 roll. The following exception was being thrown _TypeError: type 'String' is not a subtype of type 'File' ``` 8) <asynchronous suspension> utter_command.dart:347:18) <asynchronous suspension> /flutter_command.dart:282:33) <asynchronous suspension> xt.dart:142:29) <asynchronous suspension>
This commit is contained in:
parent
b280074815
commit
35d50a0e16
@ -364,13 +364,16 @@ class RunCommand extends RunCommandBase {
|
|||||||
}).toList();
|
}).toList();
|
||||||
|
|
||||||
ResidentRunner runner;
|
ResidentRunner runner;
|
||||||
|
final String applicationBinaryPath = argResults['use-application-binary'];
|
||||||
if (hotMode) {
|
if (hotMode) {
|
||||||
runner = new HotRunner(
|
runner = new HotRunner(
|
||||||
flutterDevices,
|
flutterDevices,
|
||||||
target: targetFile,
|
target: targetFile,
|
||||||
debuggingOptions: _createDebuggingOptions(),
|
debuggingOptions: _createDebuggingOptions(),
|
||||||
benchmarkMode: argResults['benchmark'],
|
benchmarkMode: argResults['benchmark'],
|
||||||
applicationBinary: argResults['use-application-binary'],
|
applicationBinary: applicationBinaryPath == null
|
||||||
|
? null
|
||||||
|
: fs.file(applicationBinaryPath),
|
||||||
projectRootPath: argResults['project-root'],
|
projectRootPath: argResults['project-root'],
|
||||||
packagesFilePath: globalResults['packages'],
|
packagesFilePath: globalResults['packages'],
|
||||||
dillOutputPath: argResults['output-dill'],
|
dillOutputPath: argResults['output-dill'],
|
||||||
@ -383,7 +386,9 @@ class RunCommand extends RunCommandBase {
|
|||||||
target: targetFile,
|
target: targetFile,
|
||||||
debuggingOptions: _createDebuggingOptions(),
|
debuggingOptions: _createDebuggingOptions(),
|
||||||
traceStartup: traceStartup,
|
traceStartup: traceStartup,
|
||||||
applicationBinary: argResults['use-application-binary'],
|
applicationBinary: applicationBinaryPath == null
|
||||||
|
? null
|
||||||
|
: fs.file(applicationBinaryPath),
|
||||||
stayResident: stayResident,
|
stayResident: stayResident,
|
||||||
ipv6: ipv6,
|
ipv6: ipv6,
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user