Skip to content

Commit 3529a17

Browse files
committed
[PGPRO-5421] fix test_waldir_outside_pgdata_archiving for 9.6
1 parent a9f3e80 commit 3529a17

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

tests/archive.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1919,6 +1919,10 @@ def test_waldir_outside_pgdata_archiving(self):
19191919
"""
19201920
check that archive-push works correct with symlinked waldir
19211921
"""
1922+
if self.pg_config_version < self.version_to_num('10.0'):
1923+
return unittest.skip(
1924+
'Skipped because waldir outside pgdata is supported since PG 10')
1925+
19221926
fname = self.id().split('.')[3]
19231927
backup_dir = os.path.join(self.tmp_path, module_name, fname, 'backup')
19241928
external_wal_dir = os.path.join(self.tmp_path, module_name, fname, 'ext_wal_dir')
@@ -1928,11 +1932,6 @@ def test_waldir_outside_pgdata_archiving(self):
19281932
base_dir=os.path.join(module_name, fname, 'node'),
19291933
initdb_params=['--data-checksums', '--waldir={0}'.format(external_wal_dir)])
19301934

1931-
if self.get_version(node) < self.version_to_num('10.0'):
1932-
self.del_test_dir(module_name, fname)
1933-
return unittest.skip(
1934-
'Skipped because waldir outside pgdata is supported since PG 10')
1935-
19361935
self.init_pb(backup_dir)
19371936
self.add_instance(backup_dir, 'node', node)
19381937
self.set_archiving(backup_dir, 'node', node)

0 commit comments

Comments
 (0)