Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
e3ffa768
Commit
e3ffa768
authored
Aug 10, 2019
by
James Lin
Committed by
James D. Lin
Aug 15, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update with review feedback from dnfield and jonahwilliams
parent
c02b805c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
17 deletions
+21
-17
run_command.dart
dev/bots/run_command.dart
+20
-11
test.dart
dev/bots/test.dart
+1
-6
No files found.
dev/bots/run_command.dart
View file @
e3ffa768
...
...
@@ -113,14 +113,18 @@ Future<void> runCommand(String executable, List<String> arguments, {
.
where
((
String
line
)
=>
removeLine
==
null
||
!
removeLine
(
line
))
.
map
((
String
line
)
=>
'
$line
\n
'
)
.
transform
(
const
Utf8Encoder
());
if
(
outputMode
==
OutputMode
.
print
)
{
switch
(
outputMode
)
{
case
OutputMode
.
print
:
await
Future
.
wait
<
void
>(<
Future
<
void
>>[
stdout
.
addStream
(
stdoutSource
),
stderr
.
addStream
(
process
.
stderr
),
]);
}
else
{
break
;
case
OutputMode
.
capture
:
case
OutputMode
.
discard
:
savedStdout
=
stdoutSource
.
toList
();
savedStderr
=
process
.
stderr
.
toList
();
break
;
}
final
int
exitCode
=
await
process
.
exitCode
.
timeout
(
timeout
,
onTimeout:
()
{
...
...
@@ -145,9 +149,14 @@ Future<void> runCommand(String executable, List<String> arguments, {
// Print the output when we get unexpected results (unless output was
// printed already).
if
(
outputMode
!=
OutputMode
.
print
)
{
switch
(
outputMode
)
{
case
OutputMode
.
print
:
break
;
case
OutputMode
.
capture
:
case
OutputMode
.
discard
:
stdout
.
writeln
(
flattenToString
(
await
savedStdout
));
stderr
.
writeln
(
flattenToString
(
await
savedStderr
));
break
;
}
print
(
'
$redLine
\n
'
...
...
dev/bots/test.dart
View file @
e3ffa768
...
...
@@ -817,7 +817,7 @@ Future<void> _runFlutterTest(String workingDirectory, {
List
<
String
>
tests
=
const
<
String
>[],
})
async
{
// Support printing output or capturing it for matching, but not both.
assert
(
_implies
(
printOutput
,
outputChecker
==
null
)
);
assert
(
!
printOutput
||
outputChecker
==
null
);
final
List
<
String
>
args
=
<
String
>[
'test'
,
...
...
@@ -1009,8 +1009,3 @@ Future<void> _androidGradleTests(String subShard) async {
await
_runDevicelabTest
(
'module_host_with_custom_build_test'
,
env:
env
);
}
}
/// Returns true if `p` logically implies `q`, false otherwise.
///
/// If `p` is true, `q` must be true.
bool
_implies
(
bool
p
,
bool
q
)
=>
!
p
||
q
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment