mirror of
https://github.com/borgbackup/borg.git
synced 2026-10-12 02:11:36 +00:00
import-tar --strip-components: keep the hard links in the BORG format test
The BORG tar format transfers the hlid in the BORG.item.meta pax header, so hard links do not become separate files there. Keep them in the test input, so the test also covers hard links plus stripping for the pax header path. Co-Authored-By: Claude Fable 5.1 <[email protected]>
This commit is contained in:
co-authored by
Claude Fable 5.1
parent
0b27210b3d
commit
113bf633cd
@@ -337,8 +337,9 @@ def test_import_tar_strip_components_list(archivers, request):
|
||||
|
||||
def test_import_tar_strip_components_borg_format(archivers, request):
|
||||
# the BORG tar format restores the items from pax headers, stripping must work for that path, too.
|
||||
# that includes hard links: the BORG format transfers the hlid, so they are hard links again after the import.
|
||||
archiver = request.getfixturevalue(archivers)
|
||||
create_test_files(archiver.input_path, create_hardlinks=False) # hard links become separate files
|
||||
create_test_files(archiver.input_path)
|
||||
os.unlink("input/flagfile")
|
||||
cmd(archiver, "repo-create", "--encryption=authenticated-sha256")
|
||||
cmd(archiver, "create", "src", "input")
|
||||
|
||||
Reference in New Issue
Block a user