You've already forked pg_probackup
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user