Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[infra] delete directories with FI reports with rmtree (google#9265)
Those directories aren't empty usually so `rmdir` fails with ``` INFO:fuzz_introspector.json_report:Finish handling sections that need json output INFO:__main__:Ending fuzz introspector report generation INFO:__main__:Ending fuzz introspector post-processing Traceback (most recent call last): File "/home/vagrant/oss-fuzz-2/./infra/helper.py", line 1513, in <module> sys.exit(main()) File "/home/vagrant/oss-fuzz-2/./infra/helper.py", line 192, in main result = introspector(args) File "/home/vagrant/oss-fuzz-2/./infra/helper.py", line 1243, in introspector os.rmdir(introspector_dst) OSError: [Errno 39] Directory not empty: '/home/vagrant/oss-fuzz-2/build/out/dbus-broker/introspector-report' ``` It should make it possible to run `introspector` a few times in a row when for example fuzz targets are changed locally between subsequent runs. It's a follow-up to google#9243.
- Loading branch information