Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd7cc00b

Browse files
committed
Check pg_probackup binary in PATH
1 parentb17669c commitd7cc00b

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

‎tests/helpers/ptrack_helpers.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -242,10 +242,7 @@ def __init__(self, *args, **kwargs):
242242
self.user=self.get_username()
243243
self.probackup_path=None
244244
if'PGPROBACKUPBIN'inself.test_env:
245-
if (
246-
os.path.isfile(self.test_env["PGPROBACKUPBIN"])and
247-
os.access(self.test_env["PGPROBACKUPBIN"],os.X_OK)
248-
):
245+
ifshutil.which(self.test_env["PGPROBACKUPBIN"]):
249246
self.probackup_path=self.test_env["PGPROBACKUPBIN"]
250247
else:
251248
ifself.verbose:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp