mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
![auto-submit[bot]](/assets/img/avatar_default.png)
Reverts: flutter/flutter#146931 Initiated by: Hixie Reason for reverting: more failures Original PR Author: Hixie Reviewed By: {reidbaker} This change reverts the following previous change: Fixes #137555. This is an updated version of https://github.com/flutter/flutter/pull/146856, which was reverted in https://github.com/flutter/flutter/pull/146927. The first commit is identical to the original PR, and subsequent commits are the fixes to address failures detected in devicelab post-commit.
36 lines
1.1 KiB
Dart
36 lines
1.1 KiB
Dart
// 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';
|
|
import 'package:path/path.dart' as path;
|
|
|
|
void main() {
|
|
task(() async {
|
|
deviceOperatingSystem = DeviceOperatingSystem.ios;
|
|
final Device device = await devices.workingDevice;
|
|
await device.unlock();
|
|
final Directory appDir = dir(path.join(flutterDirectory.path, 'dev/integration_tests/ui'));
|
|
section('TEST WHETHER `flutter drive --route` WORKS on IOS');
|
|
await inDirectory(appDir, () async {
|
|
return flutter(
|
|
'drive',
|
|
options: <String>[
|
|
'--verbose',
|
|
'-d',
|
|
device.deviceId,
|
|
'--route',
|
|
'/smuggle-it',
|
|
'lib/route.dart',
|
|
],
|
|
);
|
|
});
|
|
return TaskResult.success(null);
|
|
});
|
|
}
|