charmed-kubernetes / pytest-operator

Apache License 2.0
7 stars 13 forks source link

feat: gracefully handle un-deletable files in ./build #28

Closed ca-scribner closed 3 years ago

ca-scribner commented 3 years ago

Charmcraft occasionally can create files in ./build that are owned by another user. These files cause the pytest-operator to raise an exception when cleaning up ./build. I have not been able to make a reproducible example to post as a bug in charmcraft, but as a mitigation added a handler here to warn on the failed deletions rather than fail entirely.