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
3d5d63a8
Commit
3d5d63a8
authored
Mar 13, 2017
by
Jason Simmons
Committed by
GitHub
Mar 13, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Accept any nonzero exit code as a signal of failure in the missing dependency test (#8738)
parent
fecc4e65
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
test_test.dart
packages/flutter_tools/test/test_test.dart
+5
-5
No files found.
packages/flutter_tools/test/test_test.dart
View file @
3d5d63a8
...
...
@@ -25,23 +25,23 @@ void main() {
testUsingContext
(
'TestAsyncUtils guarded function test'
,
()
async
{
Cache
.
flutterRoot
=
'../..'
;
return
_testFile
(
'test_async_utils_guarded'
,
1
,
automatedTestsDirectory
,
flutterTestDirectory
);
return
_testFile
(
'test_async_utils_guarded'
,
automatedTestsDirectory
,
flutterTestDirectory
);
});
testUsingContext
(
'TestAsyncUtils unguarded function test'
,
()
async
{
Cache
.
flutterRoot
=
'../..'
;
return
_testFile
(
'test_async_utils_unguarded'
,
1
,
automatedTestsDirectory
,
flutterTestDirectory
);
return
_testFile
(
'test_async_utils_unguarded'
,
automatedTestsDirectory
,
flutterTestDirectory
);
});
testUsingContext
(
'Missing flutter_test dependency'
,
()
async
{
final
String
missingDependencyTests
=
fs
.
path
.
join
(
'..'
,
'..'
,
'dev'
,
'missing_dependency_tests'
);
Cache
.
flutterRoot
=
'../..'
;
return
_testFile
(
'trivial'
,
1
,
missingDependencyTests
,
missingDependencyTests
);
return
_testFile
(
'trivial'
,
missingDependencyTests
,
missingDependencyTests
);
});
},
skip:
io
.
Platform
.
isWindows
);
// TODO(goderbauer): enable when sky_shell is available
}
Future
<
Null
>
_testFile
(
String
testName
,
int
wantedExitCode
,
String
workingDirectory
,
String
testDirectory
)
async
{
Future
<
Null
>
_testFile
(
String
testName
,
String
workingDirectory
,
String
testDirectory
)
async
{
final
String
fullTestName
=
fs
.
path
.
join
(
testDirectory
,
'
${testName}
_test.dart'
);
final
File
testFile
=
fs
.
file
(
fullTestName
);
expect
(
testFile
.
existsSync
(),
true
);
...
...
@@ -71,7 +71,7 @@ Future<Null> _testFile(String testName, int wantedExitCode, String workingDirect
testExclusionCompleter
.
complete
();
}
expect
(
exec
.
exitCode
,
wantedExitCode
);
expect
(
exec
.
exitCode
,
isNonZero
);
final
List
<
String
>
output
=
exec
.
stdout
.
split
(
'
\n
'
);
output
.
add
(
'<<stderr>>'
);
output
.
addAll
(
exec
.
stderr
.
split
(
'
\n
'
));
...
...
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