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
aa6cc071
Unverified
Commit
aa6cc071
authored
Jul 13, 2019
by
Ian Hickson
Committed by
GitHub
Jul 13, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Be clearer about errors in customer testing script (#36098)
parent
bade97c4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
7 deletions
+27
-7
run_tests.dart
dev/customer_testing/run_tests.dart
+27
-7
No files found.
dev/customer_testing/run_tests.dart
View file @
aa6cc071
...
@@ -47,7 +47,23 @@ Future<bool> run(List<String> arguments) async {
...
@@ -47,7 +47,23 @@ Future<bool> run(List<String> arguments) async {
help:
'Print this help message.'
,
help:
'Print this help message.'
,
);
);
final
ArgResults
parsedArguments
=
argParser
.
parse
(
arguments
);
void
printHelp
()
{
print
(
'run_tests.dart [options...] path/to/file1.test path/to/file2.test...'
);
print
(
'For details on the test registry format, see:'
);
print
(
' https://github.com/flutter/tests/blob/master/registry/template.test'
);
print
(
''
);
print
(
argParser
.
usage
);
print
(
''
);
}
ArgResults
parsedArguments
;
try
{
parsedArguments
=
argParser
.
parse
(
arguments
);
}
on
ArgParserException
catch
(
error
)
{
printHelp
();
print
(
'Error:
${error.message}
Use --help for usage information.'
);
exit
(
1
);
}
final
int
repeat
=
int
.
tryParse
(
parsedArguments
[
'repeat'
]);
final
int
repeat
=
int
.
tryParse
(
parsedArguments
[
'repeat'
]);
final
bool
skipOnFetchFailure
=
parsedArguments
[
'skip-on-fetch-failure'
];
final
bool
skipOnFetchFailure
=
parsedArguments
[
'skip-on-fetch-failure'
];
...
@@ -62,12 +78,16 @@ Future<bool> run(List<String> arguments) async {
...
@@ -62,12 +78,16 @@ Future<bool> run(List<String> arguments) async {
.
toList
();
.
toList
();
if
(
help
||
repeat
==
null
||
files
.
isEmpty
)
{
if
(
help
||
repeat
==
null
||
files
.
isEmpty
)
{
print
(
'run_tests.dart [options...] path/to/file1.test path/to/file2.test...'
);
printHelp
();
print
(
'For details on the test registry format, see:'
);
if
(
verbose
)
{
print
(
' https://github.com/flutter/tests/blob/master/registry/template.test'
);
if
(
repeat
==
null
)
print
(
''
);
print
(
'Error: Could not parse repeat count ("
${parsedArguments['repeat']}
")'
);
print
(
argParser
.
usage
);
if
(
parsedArguments
.
rest
.
isEmpty
)
{
print
(
''
);
print
(
'Error: No file arguments specified.'
);
}
else
if
(
files
.
isEmpty
)
{
print
(
'Error: File arguments ("
${parsedArguments.rest.join("\", \"")}
") did not identify any real files.'
);
}
}
return
help
;
return
help
;
}
}
...
...
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