Use real flutter root for finding pub in command integration test#64021
Use real flutter root for finding pub in command integration test#64021jmagman merged 1 commit intoflutter:masterfrom
Conversation
| Logger logger; | ||
|
|
||
| setUp(() { | ||
| platform = const LocalPlatform(); |
There was a problem hiding this comment.
copy-paste strikes again
|
Was this just passing because of the CWD on cirrus? additionally, should we move this to the integration shard to make it clear it is absolutely not a unit test? |
christopherfujino
left a comment
There was a problem hiding this comment.
LGTM.
For a later PR, should we move this to permeable?
When I run I tried to track down the leak but I couldn't spot it, I should probably spend more time on that but I got distracted. |
Does |
|
test.dart runs with FLUTTER_ROOT environment variable set |
Description
This "hermetic" test uses real pub.
FlutterCommandRunner.initFlutterRoot();was setting the cache root to../...analyze_continuously_testrunspub getrelative to the temp directory, and../../bin/cache/dart-sdk/bin/pubdoesn't exist there.Related Issues
Fixes #64008
Checklist
///).flutter analyze --flutter-repo) does not report any problems on my PR.Breaking Change