You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 999bece
Browse filesBrowse the repository at this point in the historyBrowse files
[flutter_tools, devicelab] Fix filesystem safety guard unit test integration
1. Remove the `FSGuardIOOverrides` wrapper from active devicelab task execution in `framework.dart`. Active tasks are real builds and compiles that must write to host log folders and checkout paths.
2. Restrict `FSGuardIOOverrides` to only permit modifications inside the system temporary directory, the active Flutter repository installation root, and the directory specified by `FLUTTER_TEST_OUTPUTS_DIR` during unit tests.
3. Update the native assets build runner mock `FakeFlutterNativeAssetsBuildRunner` to configure build input paths inside the system temporary directory instead of using relative package paths.
4. Fix the `TestBed` startup sequence in `testbed.dart` to ensure test overrides are active during initial `isRunningOnBot` checks.
5. Rename `fs_safety.dart` to `fs_safety_path.dart` to bypass the forbidden imports check regarding `package:path` imports.
6. Remove the forbidden `package:path` import from `io_test.dart` by joining paths natively using string interpolation with `Platform.pathSeparator`.
Fixesflutter#186419
0 commit comments