8000 compatibility tests: skip if PGPROBACKUPBIN_OLD is not set · postgrespro/pg_probackup@3c11126 · GitHub
[go: up one dir, main page]

Skip to content

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

Appearance settings

Commit 3c11126

Browse files
funny-falconSergey Fukanchik
authored andcommitted
compatibility tests: skip if PGPROBACKUPBIN_OLD is not set
1 parent be2b90b commit 3c11126

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

tests/compatibility_test.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,7 @@ def check_ssh_agent_path_exists():
1414
return 'PGPROBACKUP_SSH_AGENT_PATH' in os.environ
1515

1616

17-
class CompatibilityTest(ProbackupTest, unittest.TestCase):
18-
19-
def setUp(self):
20-
self.fname = self.id().split('.')[3]
21-
22-
# @unittest.expectedFailure
17+
class CrossCompatibilityTest(ProbackupTest, unittest.TestCase):
2318
@unittest.skipUnless(check_manual_tests_enabled(), 'skip manual test')
2419
@unittest.skipUnless(check_ssh_agent_path_exists(), 'skip no ssh agent path exist')
2520
# @unittest.skip("skip")
@@ -86,6 +81,14 @@ def test_catchup_with_different_remote_major_pg(self):
8681
options=['-d', 'postgres', '-p', str(src_pg.port), '--stream', '--remote-path=' + pgprobackup_ssh_agent_path]
8782
)
8883

84+
85+
class CompatibilityTest(ProbackupTest, unittest.TestCase):
86+
87+
def setUp(self):
88+
super().setUp()
89+
if not self.probackup_old_path:
90+
self.skipTest('PGPROBACKUPBIN_OLD is not set')
91+
8992
# @unittest.expectedFailure
9093
# @unittest.skip("skip")
9194
def test_backward_compatibility_page(self):

0 commit comments

Comments
 (0)
0