mirror of https://github.com/borgbackup/borg.git
simplified remote repo check
This commit is contained in:
parent
b8b80c5fef
commit
6f35f5b0a4
|
@ -17,7 +17,7 @@ def test_rcreate_parent_dirs(archivers, request):
|
|||
archiver = request.getfixturevalue(archivers)
|
||||
if archiver.EXE:
|
||||
pytest.skip("does not raise Exception, but sets rc==2")
|
||||
remote_repo = True if archiver.get_kind() == "remote" else False
|
||||
remote_repo = archiver.get_kind() == "remote"
|
||||
parent_path = os.path.join(archiver.tmpdir, "parent1", "parent2")
|
||||
repository_path = os.path.join(parent_path, "repository")
|
||||
repository_location = ("ssh://__testsuite__" + repository_path) if remote_repo else repository_path
|
||||
|
|
Loading…
Reference in New Issue