Skip to content

Commit f8c3e52

Browse files
Reverts "Try to be more consistent about deleting test apps in devicelab logic. (#146856)" (#146927)
Reverts: flutter/flutter#146856 Initiated by: Hixie Reason for reverting: breaking tree Original PR Author: Hixie Reviewed By: {reidbaker} This change reverts the following previous change: Fixes flutter/flutter#137555.
1 parent f02cb0c commit f8c3e52

22 files changed

Lines changed: 22 additions & 66 deletions

dev/devicelab/bin/tasks/complex_layout_semantics_perf.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ void main() {
3232
'-d',
3333
deviceId,
3434
]);
35-
await device.uninstallApp();
3635
});
3736

3837
final String outputPath = Platform.environment['FLUTTER_TEST_OUTPUTS_DIR'] ?? p.join(complexLayoutPath, 'build');

dev/devicelab/bin/tasks/drive_perf_debug_warning.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ Future<String> _runWithMode(String mode, String deviceId) async {
1616
'-d',
1717
deviceId,
1818
]);
19-
await evalFlutter('install', options: <String>['--uninstall-only', '-d', deviceId]);
2019
return stderr.toString();
2120
}
2221

dev/devicelab/bin/tasks/hello_world__memory.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ class HelloWorldMemoryTest extends MemoryTest {
2929
await recordStart();
3030
await Future<void>.delayed(const Duration(milliseconds: 3000));
3131
await recordEnd();
32-
await device!.uninstallApp();
3332
}
3433
}
3534

dev/devicelab/bin/tasks/hello_world_impeller.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ Future<TaskResult> run() async {
6565
await Future<void>.delayed(const Duration(seconds: 30));
6666
process.stdin.write('q');
6767
await adb.cancel();
68-
await device.uninstallApp();
6968
});
7069

7170
if (!isUsingValidationLayers || impellerBackendCount != 1) {

dev/devicelab/bin/tasks/route_test_ios.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ void main() {
1616
final Device device = await devices.workingDevice;
1717
await device.unlock();
1818
final Directory appDir = dir(path.join(flutterDirectory.path, 'dev/integration_tests/ui'));
19-
section('TEST WHETHER `flutter drive --route` WORKS ON iOS');
19+
section('TEST WHETHER `flutter drive --route` WORKS on IOS');
2020
await inDirectory(appDir, () async {
21-
await flutter(
21+
return flutter(
2222
'drive',
2323
options: <String>[
2424
'--verbose',
@@ -29,7 +29,6 @@ void main() {
2929
'lib/route.dart',
3030
],
3131
);
32-
await device.uninstallApp();
3332
});
3433
return TaskResult.success(null);
3534
});

dev/devicelab/bin/tasks/service_extensions_test.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,6 @@ void main() {
118118
if (result != 0) {
119119
throw 'Received unexpected exit code $result from run process.';
120120
}
121-
await device.uninstallApp();
122121
});
123122
return TaskResult.success(null);
124123
});

dev/devicelab/lib/tasks/android_choreographer_do_frame_test.dart

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -161,13 +161,6 @@ Future<void> main() async {
161161
await stderr.cancel();
162162
run.kill();
163163

164-
await inDirectory(path.join(tempDir.path, 'app'), () async {
165-
await flutter(
166-
'install',
167-
options: <String>['--uninstall-only'],
168-
);
169-
});
170-
171164
if (nextCompleterIdx == sentinelCompleters.values.length) {
172165
return TaskResult.success(null);
173166
}

dev/devicelab/lib/tasks/android_lifecycles_test.dart

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -154,13 +154,6 @@ void main() {
154154
await lifecycles.close();
155155
await stdout.cancel();
156156
await stderr.cancel();
157-
158-
await inDirectory(path.join(tempDir.path, 'app'), () async {
159-
await flutter(
160-
'install',
161-
options: <String>['--uninstall-only'],
162-
);
163-
});
164157
return TaskResult.success(null);
165158
}
166159

dev/devicelab/lib/tasks/android_verified_input_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class DriverTest {
5353
...extraOptions,
5454
];
5555
await flutter('drive', options: options, environment: environment);
56-
await flutter('install', options: <String>['--uninstall-only', '-d', deviceId], environment: environment);
56+
5757
return TaskResult.success(null);
5858
});
5959
}

dev/devicelab/lib/tasks/android_views_test.dart

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ TaskFunction androidViewsTest({
3434
final int exitCode = await exec(
3535
'./gradlew',
3636
<String>['-q', 'dependencies'],
37-
workingDirectory: '${flutterDirectory.path}/dev/integration_tests/android_views/android'
37+
workingDirectory:
38+
'${flutterDirectory.path}/dev/integration_tests/android_views/android'
3839
);
3940
if (exitCode != 0) {
4041
return TaskResult.failure('Failed to download gradle dependencies');
@@ -50,12 +51,6 @@ TaskFunction androidViewsTest({
5051
environment: environment,
5152
workingDirectory: '${flutterDirectory.path}/dev/integration_tests/android_views'
5253
);
53-
await flutter(
54-
'install',
55-
options: <String>['--uninstall-only'],
56-
environment: environment,
57-
workingDirectory: '${flutterDirectory.path}/dev/integration_tests/android_views',
58-
);
5954
return TaskResult.success(null);
6055
};
6156
}

0 commit comments

Comments
 (0)