simplified remote repo check

This commit is contained in:
bigtedde 2023-07-22 23:39:10 -07:00
parent b8b80c5fef
commit 6f35f5b0a4
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ def test_rcreate_parent_dirs(archivers, request):
archiver = request.getfixturevalue(archivers) archiver = request.getfixturevalue(archivers)
if archiver.EXE: if archiver.EXE:
pytest.skip("does not raise Exception, but sets rc==2") 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") parent_path = os.path.join(archiver.tmpdir, "parent1", "parent2")
repository_path = os.path.join(parent_path, "repository") repository_path = os.path.join(parent_path, "repository")
repository_location = ("ssh://__testsuite__" + repository_path) if remote_repo else repository_path repository_location = ("ssh://__testsuite__" + repository_path) if remote_repo else repository_path