Update clean command in devicelab tests (#12640)
This commit is contained in:
parent
1eed6dff34
commit
2a11e896ee
@ -19,7 +19,7 @@ Future<Null> main() async {
|
|||||||
final Device device = await devices.workingDevice;
|
final Device device = await devices.workingDevice;
|
||||||
await device.unlock();
|
await device.unlock();
|
||||||
await flutter('packages', options: <String>['get']);
|
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']);
|
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;
|
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>{
|
await exec('./tool/run_instrumentation_test.sh', <String>[], environment: <String, String>{
|
||||||
|
@ -192,7 +192,7 @@ class BuildTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static Future<Map<String, dynamic>> _buildAot(bool previewDart2) async {
|
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 Stopwatch watch = new Stopwatch()..start();
|
||||||
final List<String> options = <String>[
|
final List<String> options = <String>[
|
||||||
'aot',
|
'aot',
|
||||||
@ -218,7 +218,7 @@ class BuildTest {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static Future<Map<String, dynamic>> _buildDebug(bool previewDart2) async {
|
static Future<Map<String, dynamic>> _buildDebug(bool previewDart2) async {
|
||||||
await flutter('build', options: <String>['clean']);
|
await flutter('clean');
|
||||||
|
|
||||||
final Stopwatch watch = new Stopwatch();
|
final Stopwatch watch = new Stopwatch();
|
||||||
if (deviceOperatingSystem == DeviceOperatingSystem.ios) {
|
if (deviceOperatingSystem == DeviceOperatingSystem.ios) {
|
||||||
|
@ -29,7 +29,7 @@ TaskFunction createBasicMaterialAppSizeTest() {
|
|||||||
|
|
||||||
await inDirectory(sampleDir, () async {
|
await inDirectory(sampleDir, () async {
|
||||||
await flutter('packages', options: <String>['get']);
|
await flutter('packages', options: <String>['get']);
|
||||||
await flutter('build', options: <String>['clean']);
|
await flutter('clean');
|
||||||
|
|
||||||
if (deviceOperatingSystem == DeviceOperatingSystem.ios) {
|
if (deviceOperatingSystem == DeviceOperatingSystem.ios) {
|
||||||
await prepareProvisioningCertificates(sampleDir.path);
|
await prepareProvisioningCertificates(sampleDir.path);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user