From 335efbf187ca7ae38ad40a5c0803cfce8812becd Mon Sep 17 00:00:00 2001 From: Artem Sheremet Date: Wed, 22 Mar 2023 11:19:44 +0100 Subject: [PATCH] Simplify import-tar ignore-zeros negative test Some of those cleanups are unnecessary since we don't use assert_dirs_equal. --- src/borg/testsuite/archiver/tar_cmds.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/borg/testsuite/archiver/tar_cmds.py b/src/borg/testsuite/archiver/tar_cmds.py index 9b91dae2d..d9be9ce46 100644 --- a/src/borg/testsuite/archiver/tar_cmds.py +++ b/src/borg/testsuite/archiver/tar_cmds.py @@ -180,18 +180,12 @@ class ArchiverTestCase(ArchiverTestCaseBase): 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")