Update clean command in devicelab tests (#12640)

This commit is contained in:
Michael Goderbauer 2017-10-19 13:20:32 -07:00 committed by GitHub
parent 1eed6dff34
commit 2a11e896ee
3 changed files with 4 additions and 4 deletions

View file

@ -19,7 +19,7 @@ Future<Null> main() async {
final Device device = await devices.workingDevice;
await device.unlock();
await flutter('packages', options: <String>['get']);
await flutter('build', options: <String>['clean']);
await flutter('clean');
await flutter('build', options: <String>['apk', '--target', 'test/live_smoketest.dart']);
final String androidStudioPath = grep('Android Studio at', from: await evalFlutter('doctor')).first.split(' ').last;
await exec('./tool/run_instrumentation_test.sh', <String>[], environment: <String, String>{

View file

@ -192,7 +192,7 @@ class BuildTest {
}
static Future<Map<String, dynamic>> _buildAot(bool previewDart2) async {
await flutter('build', options: <String>['clean']);
await flutter('clean');
final Stopwatch watch = new Stopwatch()..start();
final List<String> options = <String>[
'aot',
@ -218,7 +218,7 @@ class BuildTest {
}
static Future<Map<String, dynamic>> _buildDebug(bool previewDart2) async {
await flutter('build', options: <String>['clean']);
await flutter('clean');
final Stopwatch watch = new Stopwatch();
if (deviceOperatingSystem == DeviceOperatingSystem.ios) {

View file

@ -29,7 +29,7 @@ TaskFunction createBasicMaterialAppSizeTest() {
await inDirectory(sampleDir, () async {
await flutter('packages', options: <String>['get']);
await flutter('build', options: <String>['clean']);
await flutter('clean');
if (deviceOperatingSystem == DeviceOperatingSystem.ios) {
await prepareProvisioningCertificates(sampleDir.path);