@@ -349,7 +349,7 @@ def test_page_detect_corruption(self):
349349
350350 heap_path = node .safe_psql (
351351 "postgres" ,
352- "select pg_relation_filepath('t_heap')" ).rstrip ()
352+ "select pg_relation_filepath('t_heap')" ).decode ( 'utf-8' ). rstrip ()
353353
354354 path = os .path .join (node .data_dir , heap_path )
355355 with open (path , "rb+" , 0 ) as f :
@@ -416,7 +416,7 @@ def test_backup_detect_corruption(self):
416416
417417 heap_path = node .safe_psql (
418418 "postgres" ,
419- "select pg_relation_filepath('t_heap')" ).rstrip ()
419+ "select pg_relation_filepath('t_heap')" ).decode ( 'utf-8' ). rstrip ()
420420
421421 self .backup_node (
422422 backup_dir , 'node' , node ,
@@ -558,7 +558,7 @@ def test_backup_detect_invalid_block_header(self):
558558
559559 heap_path = node .safe_psql (
560560 "postgres" ,
561- "select pg_relation_filepath('t_heap')" ).rstrip ()
561+ "select pg_relation_filepath('t_heap')" ).decode ( 'utf-8' ). rstrip ()
562562
563563 self .backup_node (
564564 backup_dir , 'node' , node ,
@@ -699,7 +699,7 @@ def test_backup_detect_missing_permissions(self):
699699
700700 heap_path = node .safe_psql (
701701 "postgres" ,
702- "select pg_relation_filepath('t_heap')" ).rstrip ()
702+ "select pg_relation_filepath('t_heap')" ).decode ( 'utf-8' ). rstrip ()
703703
704704 self .backup_node (
705705 backup_dir , 'node' , node ,
@@ -840,7 +840,7 @@ def test_backup_truncate_misaligned(self):
840840
841841 heap_path = node .safe_psql (
842842 "postgres" ,
843- "select pg_relation_filepath('t_heap')" ).rstrip ()
843+ "select pg_relation_filepath('t_heap')" ).decode ( 'utf-8' ). rstrip ()
844844
845845 heap_size = node .safe_psql (
846846 "postgres" ,
@@ -922,7 +922,7 @@ def test_tablespace_in_pgdata_pgpro_1376(self):
922922 relfilenode = node .safe_psql (
923923 "postgres" ,
924924 "select 't_heap1'::regclass::oid"
925- ).rstrip ()
925+ ).decode ( 'utf-8' ). rstrip ()
926926
927927 list = []
928928 for root , dirs , files in os .walk (os .path .join (
@@ -1205,11 +1205,11 @@ def test_drop_rel_during_full_backup(self):
12051205
12061206 relative_path_1 = node .safe_psql (
12071207 "postgres" ,
1208- "select pg_relation_filepath('t_heap_1')" ).rstrip ()
1208+ "select pg_relation_filepath('t_heap_1')" ).decode ( 'utf-8' ). rstrip ()
12091209
12101210 relative_path_2 = node .safe_psql (
12111211 "postgres" ,
1212- "select pg_relation_filepath('t_heap_1')" ).rstrip ()
1212+ "select pg_relation_filepath('t_heap_1')" ).decode ( 'utf-8' ). rstrip ()
12131213
12141214 absolute_path_1 = os .path .join (node .data_dir , relative_path_1 )
12151215 absolute_path_2 = os .path .join (node .data_dir , relative_path_2 )
@@ -1350,7 +1350,7 @@ def test_drop_rel_during_backup_delta(self):
13501350
13511351 relative_path = node .safe_psql (
13521352 "postgres" ,
1353- "select pg_relation_filepath('t_heap')" ).rstrip ()
1353+ "select pg_relation_filepath('t_heap')" ).decode ( 'utf-8' ). rstrip ()
13541354
13551355 absolute_path = os .path .join (node .data_dir , relative_path )
13561356
@@ -1418,7 +1418,7 @@ def test_drop_rel_during_backup_page(self):
14181418
14191419 relative_path = node .safe_psql (
14201420 "postgres" ,
1421- "select pg_relation_filepath('t_heap')" ).rstrip ()
1421+ "select pg_relation_filepath('t_heap')" ).decode ( 'utf-8' ). rstrip ()
14221422
14231423 absolute_path = os .path .join (node .data_dir , relative_path )
14241424
@@ -1443,6 +1443,7 @@ def test_drop_rel_during_backup_page(self):
14431443
14441444 # File removed, we can proceed with backup
14451445 gdb .continue_execution_until_exit ()
1446+ gdb .kill ()
14461447
14471448 pgdata = self .pgdata_content (node .data_dir )
14481449
@@ -1492,7 +1493,7 @@ def test_drop_rel_during_backup_ptrack(self):
14921493
14931494 relative_path = node .safe_psql (
14941495 "postgres" ,
1495- "select pg_relation_filepath('t_heap')" ).rstrip ()
1496+ "select pg_relation_filepath('t_heap')" ).decode ( 'utf-8' ). rstrip ()
14961497
14971498 absolute_path = os .path .join (node .data_dir , relative_path )
14981499
@@ -1637,6 +1638,7 @@ def test_backup_concurrent_drop_table(self):
16371638
16381639 gdb .remove_all_breakpoints ()
16391640 gdb .continue_execution_until_exit ()
1641+ gdb .kill ()
16401642
16411643 show_backup = self .show_pb (backup_dir , 'node' )[0 ]
16421644
@@ -1761,6 +1763,7 @@ def test_sigint_handling(self):
17611763
17621764 gdb ._execute ('signal SIGINT' )
17631765 gdb .continue_execution_until_error ()
1766+ gdb .kill ()
17641767
17651768 backup_id = self .show_pb (backup_dir , 'node' )[0 ]['id' ]
17661769
@@ -1901,7 +1904,7 @@ def test_basic_missing_file_permissions(self):
19011904
19021905 relative_path = node .safe_psql (
19031906 "postgres" ,
1904- "select pg_relation_filepath('pg_class')" ).rstrip ()
1907+ "select pg_relation_filepath('pg_class')" ).decode ( 'utf-8' ). rstrip ()
19051908
19061909 full_path = os .path .join (node .data_dir , relative_path )
19071910
0 commit comments