Steps to reproduce
I am following this instruction to run UIScene integration test:
https://github.com/flutter/flutter/blob/23f6f5853f50c4ee200d9f6aa0f1015b36e70e3c/dev/integration_tests/ios_add2app_uiscene/README.md
Specifically:
The test create the Flutter module, Flutter plugin, and native iOS app and deletes them at the end of the test. You can also create these files in a specific directory that will not be deleted:
../../bin/cache/dart-sdk/bin/dart bin/test_runner.dart test -t module_uiscene_test_ios --task-args destination=[/path/to/copy/destination]
So I ran
dart bin/test_runner.dart test -t module_uiscene_test_ios --task-args destination=~/Desktop
Expected results
I was expecting the project to appear in ~/Desktop.
Actual results
It nuked my desktop. This is due to:
|
destinationDir.deleteSync(recursive: true); |
Code sample
NA
Screenshots or Video
NA
Logs
NA
Flutter Doctor output
NA
Steps to reproduce
I am following this instruction to run UIScene integration test:
https://github.com/flutter/flutter/blob/23f6f5853f50c4ee200d9f6aa0f1015b36e70e3c/dev/integration_tests/ios_add2app_uiscene/README.md
Specifically:
So I ran
dart bin/test_runner.dart test -t module_uiscene_test_ios --task-args destination=~/DesktopExpected results
I was expecting the project to appear in
~/Desktop.Actual results
It nuked my desktop. This is due to:
flutter/dev/devicelab/bin/tasks/module_uiscene_test_ios.dart
Line 45 in 23f6f58
Code sample
NA
Screenshots or Video
NA
Logs
NA
Flutter Doctor output
NA