We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4766f93 + 5b8a836 commit 8e06f91Copy full SHA for 8e06f91
testgres/plugins/pg_probackup2/pg_probackup2/init_helpers.py
@@ -204,6 +204,12 @@ def __init__(self):
204
os.environ["PGAPPNAME"] = "pg_probackup"
205
self.delete_logs = delete_logs
206
207
+ if self.probackup_version.split('.')[0].isdigit():
208
+ self.major_version = int(self.probackup_version.split('.')[0])
209
+ else:
210
+ print('Can\'t process pg_probackup version \"{}\": the major version is expected to be a number'.format(self.probackup_version))
211
+ sys.exit(1)
212
+
213
def test_env(self):
214
return self._test_env.copy()
215
0 commit comments