Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 5db4ae3

Browse files
committed
Break when pg_probackup version is incorrect
1 parent 2a0c37b commit 5db4ae3

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
if self.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
def test_env(self):
212214
return self._test_env.copy()

0 commit comments

Comments
 (0)