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

Commit5db4ae3

Browse files
committed
Break when pg_probackup version is incorrect
1 parent2a0c37b commit5db4ae3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎testgres/plugins/pg_probackup2/pg_probackup2/init_helpers.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,11 @@ def __init__(self):
204204
os.environ["PGAPPNAME"]="pg_probackup"
205205
self.delete_logs=delete_logs
206206

207-
self.major_version=0
208207
ifself.probackup_version.split('.')[0].isdigit:
209208
self.major_version=int(self.probackup_version.split('.')[0])
209+
else:
210+
print('Pg_probackup version is not correct!')
211+
sys.exit(1)
210212

211213
deftest_env(self):
212214
returnself._test_env.copy()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp