tests: refactor a path helper

This commit is contained in:
John Spray
2023-09-08 16:19:37 +01:00
parent 56fe8ceb97
commit 30d98307cb

View File

@@ -1778,7 +1778,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")