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
4f3b7067
Commit
4f3b7067
authored
Aug 14, 2019
by
James Lin
Committed by
James D. Lin
Aug 15, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add assert messages
parent
e3ffa768
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
run_command.dart
dev/bots/run_command.dart
+3
-1
test.dart
dev/bots/test.dart
+2
-2
No files found.
dev/bots/run_command.dart
View file @
4f3b7067
...
@@ -90,7 +90,9 @@ Future<void> runCommand(String executable, List<String> arguments, {
...
@@ -90,7 +90,9 @@ Future<void> runCommand(String executable, List<String> arguments, {
Duration
timeout
=
_kLongTimeout
,
Duration
timeout
=
_kLongTimeout
,
bool
Function
(
String
)
removeLine
,
bool
Function
(
String
)
removeLine
,
})
async
{
})
async
{
assert
((
outputMode
==
OutputMode
.
capture
)
==
(
output
!=
null
));
assert
((
outputMode
==
OutputMode
.
capture
)
==
(
output
!=
null
),
'The output parameter must be non-null with and only with '
'OutputMode.capture'
);
final
String
commandDescription
=
'
${path.relative(executable, from: workingDirectory)}
${arguments.join(' ')}
'
;
final
String
commandDescription
=
'
${path.relative(executable, from: workingDirectory)}
${arguments.join(' ')}
'
;
final
String
relativeWorkingDir
=
path
.
relative
(
workingDirectory
);
final
String
relativeWorkingDir
=
path
.
relative
(
workingDirectory
);
...
...
dev/bots/test.dart
View file @
4f3b7067
...
@@ -816,8 +816,8 @@ Future<void> _runFlutterTest(String workingDirectory, {
...
@@ -816,8 +816,8 @@ Future<void> _runFlutterTest(String workingDirectory, {
Map
<
String
,
String
>
environment
,
Map
<
String
,
String
>
environment
,
List
<
String
>
tests
=
const
<
String
>[],
List
<
String
>
tests
=
const
<
String
>[],
})
async
{
})
async
{
// Support printing output or capturing it for matching, but not both.
assert
(!
printOutput
||
outputChecker
==
null
,
assert
(!
printOutput
||
outputChecker
==
null
);
'Output either can be printed or checked but not both'
);
final
List
<
String
>
args
=
<
String
>[
final
List
<
String
>
args
=
<
String
>[
'test'
,
'test'
,
...
...
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