From: Thomas Klausner Date: Fri, 6 Dec 2013 00:08:01 +0000 (+0100) Subject: tmetadata.py: chmod tree before deletion to fix NetBSD test failure. X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=5b62dc7b73cdffa8977ca9eff8d67567bfdf3a3e;p=packages%2Fb%2Fbup.git tmetadata.py: chmod tree before deletion to fix NetBSD test failure. Apparently NetBSD won't let you recursively delete a parent directory containing a 000 subdirectory, so "chmod -R u+rwX" the tree first. Signed-off-by: Thomas Klausner [rlb@defaultvalue.org: adjust commit message.] Reviewed-by: Rob Browning --- diff --git a/lib/bup/t/tmetadata.py b/lib/bup/t/tmetadata.py index 9978407..36c8294 100644 --- a/lib/bup/t/tmetadata.py +++ b/lib/bup/t/tmetadata.py @@ -172,6 +172,7 @@ def test_from_path_error(): WVPASS(errmsg.startswith('read Linux attr')) clear_errors() finally: + subprocess.call(['chmod', '-R', 'u+rwX', tmpdir]) subprocess.call(['rm', '-rf', tmpdir])