|
@@ -140,9 +140,14 @@ class ArchiverTestCase(ArchiverTestCaseBase):
|
|
os.path.join(self.input_path, 'hardlink'))
|
|
os.path.join(self.input_path, 'hardlink'))
|
|
# Symlink
|
|
# Symlink
|
|
os.symlink('somewhere', os.path.join(self.input_path, 'link1'))
|
|
os.symlink('somewhere', os.path.join(self.input_path, 'link1'))
|
|
- if xattr.is_enabled():
|
|
|
|
|
|
+ if xattr.is_enabled(self.input_path):
|
|
xattr.setxattr(os.path.join(self.input_path, 'file1'), 'user.foo', b'bar')
|
|
xattr.setxattr(os.path.join(self.input_path, 'file1'), 'user.foo', b'bar')
|
|
- xattr.setxattr(os.path.join(self.input_path, 'link1'), 'user.foo_symlink', b'bar_symlink', follow_symlinks=False)
|
|
|
|
|
|
+ # XXX this always fails for me
|
|
|
|
+ # ubuntu 14.04, on a TMP dir filesystem with user_xattr, using fakeroot
|
|
|
|
+ # same for newer ubuntu and centos.
|
|
|
|
+ # if this is supported just on specific platform, platform should be checked first,
|
|
|
|
+ # so that the test setup for all tests using it does not fail here always for others.
|
|
|
|
+ #xattr.setxattr(os.path.join(self.input_path, 'link1'), 'user.foo_symlink', b'bar_symlink', follow_symlinks=False)
|
|
# FIFO node
|
|
# FIFO node
|
|
os.mkfifo(os.path.join(self.input_path, 'fifo1'))
|
|
os.mkfifo(os.path.join(self.input_path, 'fifo1'))
|
|
if has_lchflags:
|
|
if has_lchflags:
|