mirror of
https://github.com/borgbackup/borg.git
synced 2025-01-01 12:45:34 +00:00
Simplify import-tar ignore-zeros negative test
Some of those cleanups are unnecessary since we don't use assert_dirs_equal.
This commit is contained in:
parent
c999d5dded
commit
335efbf187
1 changed files with 0 additions and 6 deletions
|
@ -180,18 +180,12 @@ def test_import_concatenated_tar_without_ignore_zeros(self):
|
|||
with open("concatenated.tar", "wb") as concatenated:
|
||||
with open("file1.tar", "rb") as file1:
|
||||
concatenated.write(file1.read())
|
||||
# Clean up for assert_dirs_equal.
|
||||
os.unlink("file1.tar")
|
||||
|
||||
with open("the_rest.tar", "rb") as the_rest:
|
||||
concatenated.write(the_rest.read())
|
||||
# Clean up for assert_dirs_equal.
|
||||
os.unlink("the_rest.tar")
|
||||
|
||||
self.cmd(f"--repo={self.repository_location}", "rcreate", "--encryption=none")
|
||||
self.cmd(f"--repo={self.repository_location}", "import-tar", "dst", "input/concatenated.tar")
|
||||
# Clean up for assert_dirs_equal.
|
||||
os.unlink("input/concatenated.tar")
|
||||
|
||||
with changedir(self.output_path):
|
||||
self.cmd(f"--repo={self.repository_location}", "extract", "dst")
|
||||
|
|
Loading…
Reference in a new issue