tests: refactor a path helper

This commit is contained in:
John Spray
2023-09-08 16:19:37 +01:00
parent 6de414b5a5
commit 22c94d99f5

View File

@@ -1707,7 +1707,7 @@ class NeonPageserver(PgProtocol):
@property
def workdir(self) -> Path:
return Path(os.path.join(self.env.repo_dir, f"pageserver_{self.id}"))
return self.env.repo_dir / f"pageserver_{self.id}"
def assert_no_errors(self):
logfile = open(os.path.join(self.workdir, "pageserver.log"), "r")