This reverts commit 5fd259be24.
This commit is contained in:
@@ -49,6 +49,8 @@ class TestCommand extends Command<void> {
|
||||
'task, will write test results to the file.');
|
||||
argParser.addFlag(
|
||||
'silent',
|
||||
negatable: true,
|
||||
defaultsTo: false,
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -274,7 +274,7 @@ class AndroidDeviceDiscovery implements DeviceDiscovery {
|
||||
|
||||
@override
|
||||
Future<List<String>> discoverDevices() async {
|
||||
final List<String> output = (await eval(adbPath, <String>['devices', '-l']))
|
||||
final List<String> output = (await eval(adbPath, <String>['devices', '-l'], canFail: false))
|
||||
.trim().split('\n');
|
||||
final List<String> results = <String>[];
|
||||
for (final String line in output) {
|
||||
@@ -327,7 +327,7 @@ class AndroidDeviceDiscovery implements DeviceDiscovery {
|
||||
// Restarting `adb` helps with keeping device connections alive. When `adb`
|
||||
// runs non-stop for too long it loses connections to devices. There may be
|
||||
// a better method, but so far that's the best one I've found.
|
||||
await exec(adbPath, <String>['kill-server']);
|
||||
await exec(adbPath, <String>['kill-server'], canFail: false);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -555,6 +555,7 @@ class AndroidDevice extends Device {
|
||||
adbPath,
|
||||
<String>['-s', deviceId, ...arguments],
|
||||
environment: environment,
|
||||
canFail: false,
|
||||
printStdout: !silent,
|
||||
printStderr: !silent,
|
||||
);
|
||||
|
||||
@@ -224,7 +224,7 @@ Future<String> getDartVersion() async {
|
||||
|
||||
Future<String?> getCurrentFlutterRepoCommit() {
|
||||
if (!dir('${flutterDirectory.path}/.git').existsSync()) {
|
||||
return Future<String?>.value();
|
||||
return Future<String?>.value(null);
|
||||
}
|
||||
|
||||
return inDirectory<String>(flutterDirectory, () {
|
||||
|
||||
@@ -145,6 +145,7 @@ class PluginPlatformInterfaceMacOS {
|
||||
final Process run = await startProcess(
|
||||
path.join(flutterDirectory.path, 'bin', 'flutter'),
|
||||
flutterCommandArgs('run', <String>['-d', 'macos', '-v']),
|
||||
environment: null,
|
||||
);
|
||||
Completer<void> registryExecutedCompleter = Completer<void>();
|
||||
final StreamSubscription<void> subscription = run.stdout
|
||||
|
||||
@@ -133,6 +133,8 @@ Future<TaskResult> runWebBenchmark({ required bool useCanvasKit }) async {
|
||||
final ChromeOptions options = ChromeOptions(
|
||||
url: 'http://localhost:$benchmarkServerPort/index.html',
|
||||
userDataDirectory: userDataDir,
|
||||
windowHeight: 1024,
|
||||
windowWidth: 1024,
|
||||
headless: isUncalibratedSmokeTest,
|
||||
debugPort: chromeDebugPort,
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user