]> arthur.barton.de Git - bup.git/commitdiff
tmetadata.py: chmod tree before deletion to fix NetBSD test failure.
authorThomas Klausner <tk@giga.or.at>
Fri, 6 Dec 2013 00:08:01 +0000 (01:08 +0100)
committerRob Browning <rlb@defaultvalue.org>
Fri, 6 Dec 2013 16:32:29 +0000 (10:32 -0600)
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 <tk@giga.or.at>
[rlb@defaultvalue.org: adjust commit message.]
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/t/tmetadata.py

index 99784078d20fd03016606d4422587264a5c9972c..36c8294c4715dce6d26f7963104b09ec9871b7af 100644 (file)
@@ -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])