File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ def tearDownClass(cls):
6969 cls .node .cleanup ()
7070 cls .pb .del_test_dir (module_name , '' )
7171
72- @unittest .skipUnless (skip_test ,"Module pexpect isn't installed. You need to install it." )
72+ @unittest .skipIf (skip_test , "Module pexpect isn't installed. You need to install it." )
7373 def setUp (self ):
7474 self .cmd = [self .pb .probackup_path , 'backup' ,
7575 '-B' , self .backup_dir ,
@@ -130,7 +130,7 @@ def modify_pg_hba(node):
130130
131131def run_pb_with_auth (cmd , password = None , kill = False ):
132132 try :
133- with pexpect .spawn (" " .join (cmd )) as probackup :
133+ with pexpect .spawn (" " .join (cmd ), timeout = 10 ) as probackup :
134134 result = probackup .expect ("Password for user .*:" , 5 )
135135 if kill :
136136 probackup .kill (signal .SIGINT )
You can’t perform that action at this time.
0 commit comments