mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-26 01:37:20 +00:00
import-tar: better test
This commit is contained in:
parent
c84895a5eb
commit
ab1757edab
1 changed files with 3 additions and 12 deletions
|
@ -3420,18 +3420,9 @@ def test_import_tar(self):
|
|||
self.cmd('create', self.repository_location + '::src', 'input')
|
||||
self.cmd('export-tar', self.repository_location + '::src', 'simple.tar')
|
||||
self.cmd('import-tar', self.repository_location + '::dst', 'simple.tar')
|
||||
list_output = self.cmd('list', '--short', self.repository_location + '::dst')
|
||||
# TODO: use extract and compare to input once it works better
|
||||
assert set(list_output.splitlines()) == set("""\
|
||||
input
|
||||
input/hardlink
|
||||
input/file1
|
||||
input/dir2
|
||||
input/dir2/file2
|
||||
input/link1
|
||||
input/fusexattr
|
||||
input/empty
|
||||
input/fifo1""".splitlines())
|
||||
with changedir(self.output_path):
|
||||
self.cmd('extract', self.repository_location + '::dst')
|
||||
self.assert_dirs_equal('input', 'output/input', ignore_ns=True, ignore_xattrs=True)
|
||||
|
||||
def test_detect_attic_repo(self):
|
||||
path = make_attic_repo(self.repository_path)
|
||||
|
|
Loading…
Reference in a new issue