From 883cdfb44393ff748239ea71a8e4c108b5844079 Mon Sep 17 00:00:00 2001 From: Jenn Magder Date: Wed, 21 Jul 2021 15:56:03 -0700 Subject: [PATCH] Remove unused flutter_gallery_instrumentation_test (#86812) --- .../flutter_gallery_instrumentation_test.dart | 37 ------------------- 1 file changed, 37 deletions(-) delete mode 100644 dev/devicelab/bin/tasks/flutter_gallery_instrumentation_test.dart diff --git a/dev/devicelab/bin/tasks/flutter_gallery_instrumentation_test.dart b/dev/devicelab/bin/tasks/flutter_gallery_instrumentation_test.dart deleted file mode 100644 index 03651ff2b47..00000000000 --- a/dev/devicelab/bin/tasks/flutter_gallery_instrumentation_test.dart +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright 2014 The Flutter Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. - -import 'dart:io'; - -import 'package:flutter_devicelab/framework/devices.dart'; -import 'package:flutter_devicelab/framework/framework.dart'; -import 'package:flutter_devicelab/framework/task_result.dart'; -import 'package:flutter_devicelab/framework/utils.dart'; - -// This test runs "//dev/integration_tests/flutter_gallery/test/live_smoketest.dart", which communicates -// with the Java code to report its status. If this test fails due to a problem on the Dart -// side, you can debug that by just running that file directly using `flutter run`. - -Future main() async { - deviceOperatingSystem = DeviceOperatingSystem.android; - - await task(() async { - final Directory galleryDirectory = - dir('${flutterDirectory.path}/dev/integration_tests/flutter_gallery'); - await inDirectory(galleryDirectory, () async { - final Device device = await devices.workingDevice; - await device.unlock(); - await flutter('packages', options: ['get']); - await flutter('clean'); - await flutter('build', options: ['apk', '--target', 'test/live_smoketest.dart']); - final String? javaHome = await findJavaHome(); - final Map? environment = javaHome != null - ? { 'JAVA_HOME': javaHome } - : null; - await exec('./tool/run_instrumentation_test.sh', [], environment: environment); - }); - - return TaskResult.success(null); - }); -}