@@ -634,11 +634,8 @@ def test_replica_promote(self):
634634 def test_replica_stop_lsn_null_offset (self ):
635635 """
636636 """
637- if not self .gdb :
638- self .skipTest (
639- "Specify PGPROBACKUP_GDB and build without "
640- "optimizations for run this test"
641- )
637+ self ._check_gdb_flag_or_skip_test ()
638+
642639 fname = self .id ().split ('.' )[3 ]
643640 backup_dir = os .path .join (self .tmp_path , module_name , fname , 'backup' )
644641 master = self .make_simple_node (
@@ -722,11 +719,8 @@ def test_replica_stop_lsn_null_offset(self):
722719 def test_replica_stop_lsn_null_offset_next_record (self ):
723720 """
724721 """
725- if not self .gdb :
726- self .skipTest (
727- "Specify PGPROBACKUP_GDB and build without "
728- "optimizations for run this test"
729- )
722+ self ._check_gdb_flag_or_skip_test ()
723+
730724 fname = self .id ().split ('.' )[3 ]
731725 backup_dir = os .path .join (self .tmp_path , module_name , fname , 'backup' )
732726 master = self .make_simple_node (
@@ -828,6 +822,8 @@ def test_replica_stop_lsn_null_offset_next_record(self):
828822 def test_archive_replica_null_offset (self ):
829823 """
830824 """
825+ self ._check_gdb_flag_or_skip_test ()
826+
831827 fname = self .id ().split ('.' )[3 ]
832828 backup_dir = os .path .join (self .tmp_path , module_name , fname , 'backup' )
833829 master = self .make_simple_node (
@@ -998,11 +994,8 @@ def test_replica_toast(self):
998994 make archive master, take full and page archive backups from master,
999995 set replica, make archive backup from replica
1000996 """
1001- if not self .gdb :
1002- self .skipTest (
1003- "Specify PGPROBACKUP_GDB and build without "
1004- "optimizations for run this test"
1005- )
997+ self ._check_gdb_flag_or_skip_test ()
998+
1006999 fname = self .id ().split ('.' )[3 ]
10071000 backup_dir = os .path .join (self .tmp_path , module_name , fname , 'backup' )
10081001 master = self .make_simple_node (
@@ -1104,11 +1097,8 @@ def test_replica_toast(self):
11041097 def test_start_stop_lsn_in_the_same_segno (self ):
11051098 """
11061099 """
1107- if not self .gdb :
1108- self .skipTest (
1109- "Specify PGPROBACKUP_GDB and build without "
1110- "optimizations for run this test"
1111- )
1100+ self ._check_gdb_flag_or_skip_test ()
1101+
11121102 fname = self .id ().split ('.' )[3 ]
11131103 backup_dir = os .path .join (self .tmp_path , module_name , fname , 'backup' )
11141104 master = self .make_simple_node (
0 commit comments