1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2026-06-21 01:34:15 +02:00

Merge pull request #564 from postgrespro/respect-path

Respect PATH in a  pg_probackup binary check
This commit is contained in:
asavchkov
2022-11-10 17:46:52 +07:00
committed by GitHub
+1 -4
View File
@@ -242,10 +242,7 @@ class ProbackupTest(object):
self.user = self.get_username()
self.probackup_path = None
if 'PGPROBACKUPBIN' in self.test_env:
if (
os.path.isfile(self.test_env["PGPROBACKUPBIN"]) and
os.access(self.test_env["PGPROBACKUPBIN"], os.X_OK)
):
if shutil.which(self.test_env["PGPROBACKUPBIN"]):
self.probackup_path = self.test_env["PGPROBACKUPBIN"]
else:
if self.verbose: