@@ -459,22 +459,9 @@ def test_tablespace_in_pgdata_pgpro_1376(self):
459459 "md5(repeat(i::text,10))::tsvector as tsvector "
460460 "from generate_series(0,1000) i" )
461461
462- try :
463- self .backup_node (
464- backup_dir , 'node' , node , backup_type = "full" ,
465- options = ["-j" , "4" , "--stream" ])
466- # we should die here because exception is what we expect to happen
467- self .assertEqual (
468- 1 , 0 ,
469- "Expecting Error because of too many levels "
470- "of symbolic linking\n "
471- " Output: {0} \n CMD: {1}" .format (
472- repr (self .output ), self .cmd ))
473- except ProbackupException as e :
474- self .assertTrue (
475- 'Too many levels of symbolic links' in e .message ,
476- "\n Unexpected Error Message: {0}\n CMD: {1}" .format (
477- repr (e .message ), self .cmd ))
462+ backup_id_1 = self .backup_node (
463+ backup_dir , 'node' , node , backup_type = "full" ,
464+ options = ["-j" , "4" , "--stream" ])
478465
479466 node .safe_psql (
480467 "postgres" ,
@@ -495,7 +482,8 @@ def test_tablespace_in_pgdata_pgpro_1376(self):
495482 ).rstrip ()
496483
497484 list = []
498- for root , dirs , files in os .walk (backup_dir ):
485+ for root , dirs , files in os .walk (os .path .join (
486+ backup_dir , 'backups/node' , backup_id_1 )):
499487 for file in files :
500488 if file == relfilenode :
501489 path = os .path .join (root , file )
0 commit comments