Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: fsinfo: set u+rwx on directories on teardown
We have a fixture which creates a bunch of testcases for unit testing fsinfo, including cases where we don't have access to access directories. This prevents pytest's tmpdir pruning from cleaning up after the test. Make sure we set mode 0777 on all directories after we're done. This takes care of the pile of warnings like warnings.warn( /usr/lib/python3.12/site-packages/_pytest/pathlib.py:95: PytestWarning: (rm_rf) error removing /tmp/pytest-of-lis/garbage-1fa620ed-1fff-4854-aa93-d6a13d1567e3 <class 'OSError'>: [Errno 39] Directory not empty: '/tmp/pytest-of-lis/garbage-1fa620ed-1fff-4854-aa93-d6a13d1567e3' that you otherwise get after a few runs of the test (once pytest start trying to prune the tmpdir of the older runs).
- Loading branch information