Support flutter test with prebuilt binaries
Now you can run tests with and without --flutter-repo with a prebuilt binary on Linux. Fixes #307
This commit is contained in:
@@ -218,6 +218,14 @@ class FlutterCommandRunner extends CommandRunner {
|
||||
targetPlatform: TargetPlatform.android,
|
||||
deviceId: globalResults['android-device-id']
|
||||
));
|
||||
|
||||
if (hostPlatform == HostPlatform.linux) {
|
||||
configs.add(new BuildConfiguration.prebuilt(
|
||||
hostPlatform: HostPlatform.linux,
|
||||
targetPlatform: TargetPlatform.linux,
|
||||
testable: true
|
||||
));
|
||||
}
|
||||
} else {
|
||||
if (!FileSystemEntity.isDirectorySync(enginePath))
|
||||
logging.warning('$enginePath is not a valid directory');
|
||||
|
||||
Reference in New Issue
Block a user