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:
Adam Barth
2015-12-03 10:02:13 -08:00
parent 17533e1d74
commit fb98a387aa
6 changed files with 33 additions and 57 deletions

View File

@@ -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');