You've already forked pg_probackup
mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-09-16 09:26:30 +02:00
compatibility tests: skip if PGPROBACKUPBIN_OLD is not set
This commit is contained in:
committed by
Sergey Fukanchik
parent
be2b90bd3f
commit
3c111262af
@@ -14,12 +14,7 @@ def check_ssh_agent_path_exists():
|
||||
return 'PGPROBACKUP_SSH_AGENT_PATH' in os.environ
|
||||
|
||||
|
||||
class CompatibilityTest(ProbackupTest, unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
self.fname = self.id().split('.')[3]
|
||||
|
||||
# @unittest.expectedFailure
|
||||
class CrossCompatibilityTest(ProbackupTest, unittest.TestCase):
|
||||
@unittest.skipUnless(check_manual_tests_enabled(), 'skip manual test')
|
||||
@unittest.skipUnless(check_ssh_agent_path_exists(), 'skip no ssh agent path exist')
|
||||
# @unittest.skip("skip")
|
||||
@@ -86,6 +81,14 @@ class CompatibilityTest(ProbackupTest, unittest.TestCase):
|
||||
options=['-d', 'postgres', '-p', str(src_pg.port), '--stream', '--remote-path=' + pgprobackup_ssh_agent_path]
|
||||
)
|
||||
|
||||
|
||||
class CompatibilityTest(ProbackupTest, unittest.TestCase):
|
||||
|
||||
def setUp(self):
|
||||
super().setUp()
|
||||
if not self.probackup_old_path:
|
||||
self.skipTest('PGPROBACKUPBIN_OLD is not set')
|
||||
|
||||
# @unittest.expectedFailure
|
||||
# @unittest.skip("skip")
|
||||
def test_backward_compatibility_page(self):
|
||||
|
Reference in New Issue
Block a user