Restore full user permissions when failing to delete

This commit is contained in:
Pedro Algarvio 2017-02-09 18:02:57 +00:00
parent bef5e66c5b
commit b264114901
No known key found for this signature in database
GPG key ID: BB36BF6584A298FF

View file

@ -1358,7 +1358,8 @@ class TestDaemon(object):
Clean out the tmp files
'''
def remove_readonly(func, path, excinfo):
os.chmod(path, stat.S_IWRITE)
# Give full permissions to owner
os.chmod(path, stat.S_IRWXU)
func(path)
for dirname in (TMP, TMP_STATE_TREE, TMP_PRODENV_STATE_TREE):