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

Add pg_probackup plugin#92

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
demonolock merged 9 commits intomasterfromadd-pg-probackup-plugin
Jan 18, 2024
Merged
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
NextNext commit
Change tmp_path
  • Loading branch information
vshepard committedJan 17, 2024
commitde4c84e9e6bd8f9841bbe51c3a85ba7e6e11298f
10 changes: 3 additions & 7 deletionstestgres/plugins/pg_probackup2/pg_probackup2/init_helpers.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -74,16 +74,13 @@ def __init__(self):
self._test_env = test_env

# Get the directory from which the script was executed
helpers_path = os.getcwd()
self.tests_source_path = os.path.abspath(
os.path.join(helpers_path, os.pardir)
)
self.source_path = os.getcwd()
tmp_path = test_env.get('PGPROBACKUP_TMP_DIR')
if tmp_path and os.path.isabs(tmp_path):
self.tmp_path = tmp_path
else:
self.tmp_path = os.path.abspath(
os.path.join(self.tests_source_path, tmp_path or 'tmp_dirs')
os.path.join(self.source_path, tmp_path or 'tmp_dirs')
)

os.makedirs(self.tmp_path, exist_ok=True)
Expand All@@ -110,8 +107,7 @@ def __init__(self):
self.probackup_path = probackup_path_tmp

if not self.probackup_path:
probackup_path_tmp = os.path.abspath(os.path.join(
self.tests_source_path, '../pg_probackup'))
probackup_path_tmp = self.source_path

if os.path.isfile(probackup_path_tmp):
if not os.access(probackup_path_tmp, os.X_OK):
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp