mirror of
https://github.com/borgbackup/borg.git
synced 2025-02-25 07:23:28 +00:00
testsuite: archiver: check if symlinks supported before test_create_read_special_broken_symlink
On Windows, symlinks can only be created by administrator accounts. Using are_symlinks_supported() skips the test if the symlink cannot be created. See https://docs.python.org/3/library/os.html#os.symlink
This commit is contained in:
parent
e97a966b46
commit
2505118fff
1 changed files with 1 additions and 0 deletions
|
@ -756,6 +756,7 @@ def fifo_feeder(fifo_fn, data):
|
|||
extracted_data = f.read()
|
||||
assert extracted_data == data
|
||||
|
||||
@pytest.mark.skipif(not are_symlinks_supported(), reason="symlinks not supported")
|
||||
def test_create_read_special_broken_symlink(self):
|
||||
os.symlink("somewhere does not exist", os.path.join(self.input_path, "link"))
|
||||
self.cmd(f"--repo={self.repository_location}", "rcreate", RK_ENCRYPTION)
|
||||
|
|
Loading…
Reference in a new issue