mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Stream the output of flutter build for debugging. (#158757)
Towards https://github.com/flutter/flutter/issues/158560.
This commit is contained in:
parent
e77093bba4
commit
7374452eca
@ -5,6 +5,7 @@
|
||||
import 'dart:io' as io;
|
||||
|
||||
import 'package:file/file.dart';
|
||||
import 'package:flutter_tools/src/base/io.dart';
|
||||
import 'package:process/process.dart';
|
||||
import 'package:yaml/yaml.dart';
|
||||
|
||||
@ -33,7 +34,6 @@ void main() {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
const ProcessManager processManager = LocalProcessManager();
|
||||
final String constraint = _getPackageFfiTemplatePubspecVersion();
|
||||
|
||||
@ -122,19 +122,22 @@ void main(List<String> args) async {
|
||||
''');
|
||||
|
||||
// Try building.
|
||||
await expectLater(
|
||||
processManager.run(
|
||||
<String>[
|
||||
flutterBin,
|
||||
'build',
|
||||
buildCommand,
|
||||
'--debug',
|
||||
if (!codeSign) '--no-codesign',
|
||||
],
|
||||
workingDirectory: packageDirectory.path,
|
||||
),
|
||||
completion(const ProcessResultMatcher()),
|
||||
//
|
||||
// TODO(matanlurey): Stream the app so that we can see partial output.
|
||||
final List<String> args = <String>[
|
||||
flutterBin,
|
||||
'build',
|
||||
buildCommand,
|
||||
'--debug',
|
||||
if (!codeSign) '--no-codesign',
|
||||
];
|
||||
io.stderr.writeln('Running $args...');
|
||||
final io.Process process = await processManager.start(
|
||||
args,
|
||||
workingDirectory: packageDirectory.path,
|
||||
mode: ProcessStartMode.inheritStdio,
|
||||
);
|
||||
expect(await process.exitCode, 0);
|
||||
});
|
||||
},
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user