]> git.michaelhowe.org Git - packages/b/bup.git/commitdiff
Don't expect an attr error when the metadata has no attr.
authorRob Browning <rlb@defaultvalue.org>
Fri, 1 Nov 2013 23:32:22 +0000 (18:32 -0500)
committerRob Browning <rlb@defaultvalue.org>
Fri, 1 Nov 2013 23:52:40 +0000 (18:52 -0500)
When the metadata object has no Linux attr, there won't be an attr
related failure, so don't look for it.

Thanks to Alexander Barton <alex@barton.de> and Mark J Hewitt
<mjh@idnet.com> for reporting and helping track down the problem.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/t/tmetadata.py

index fa24d390e8df1250edb4c87cddbec54417649458..ea34f297dcc260839e68811ddfdab39d9b7be578 100644 (file)
@@ -222,7 +222,7 @@ def test_apply_to_path_restricted_access():
         m.apply_to_path(path)
         print >> sys.stderr, helpers.saved_errors
         expected_errors = ['utime: ']
-        if _linux_attr_supported(tmpdir):
+        if m.linux_attr and _linux_attr_supported(tmpdir):
             expected_errors.append('Linux chattr: ')
         if _linux_xattr_supported(tmpdir):
             expected_errors.append('xattr.set: ')