Visitar URL original
print test results to stdout/stderr (#35) · flutter/packages@19c9cb2 · GitHub
Skip to content

Commit 19c9cb2

Browse files
authored
print test results to stdout/stderr (#35)
1 parent 3530712 commit 19c9cb2

3 files changed

Lines changed: 16 additions & 4 deletions

File tree

‎packages/fuchsia_ctl/CHANGELOG.md‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# CHANGELOG
2+
3+
## 0.0.4
4+
5+
- Fix issue where tests results were not printing.

‎packages/fuchsia_ctl/bin/main.dart‎

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ Future<OperationResult> pm(
146146
switch (args.command.name) {
147147
case 'serve':
148148
await server.serveRepo(args['repo']);
149-
await Future<void>.delayed(Duration(seconds: 15));
149+
await Future<void>.delayed(const Duration(seconds: 15));
150150
return await server.close();
151151
case 'newRepo':
152152
return await server.newRepo(args['repo']);
@@ -224,12 +224,19 @@ Future<OperationResult> test(
224224
}
225225
}
226226

227-
stdout.writeln('Test results:');
228-
return await ssh.runCommand(
227+
final OperationResult testResult = await ssh.runCommand(
229228
targetIp,
230229
identityFilePath: identityFile,
231230
command: <String>['pkgfs/packages/$target/0/bin/app'],
232231
);
232+
stdout.writeln('Test results (passed: ${testResult.success}):');
233+
if (result.info != null) {
234+
stdout.writeln(testResult.info);
235+
}
236+
if (result.error != null) {
237+
stderr.writeln(testResult.error);
238+
}
239+
return testResult;
233240
} finally {
234241
repo.deleteSync(recursive: true);
235242
await server.close();

‎packages/fuchsia_ctl/pubspec.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: >
55
continuous integration/testing infrastructure.
66
author: Flutter Team <flutter-dev@googlegroups.com>
77
homepage: https://github.com/flutter/packags/tree/master/packages/fuchsia_ctl
8-
version: 0.0.1
8+
version: 0.0.4
99

1010
environment:
1111
sdk: ">=2.4.0 <3.0.0"

0 commit comments

Comments
 (0)