Always fake ProcessManager when you fake Filesystem in tests (#42369)
...because otherwise, processes that think they're manipulating your filesystem will be doing crazy things the test is ignoring, leading to (at best) failures and (at worst) flakes or disk corruption.
This commit is contained in:
@@ -23,6 +23,7 @@ $ ../../bin/cache/dart-sdk/bin/dart bin/flutter_tools.dart
|
||||
```
|
||||
followed by command line arguments, as usual.
|
||||
|
||||
|
||||
### Analyzing
|
||||
|
||||
To run the analyzer on Flutter Tools, in this directory run:
|
||||
@@ -56,6 +57,8 @@ run:
|
||||
```shell
|
||||
$ ../../bin/cache/dart-sdk/bin/pub run build_runner test
|
||||
```
|
||||
This is what we do in the continuous integration bots.
|
||||
|
||||
|
||||
### Forcing snapshot regeneration
|
||||
|
||||
|
||||
Reference in New Issue
Block a user