@@ -59,7 +59,7 @@ def __init__(self, test_class: unittest.TestCase,
59
59
self .execution_time = execution_time
60
60
61
61
def run (self , command , gdb = False , old_binary = False , return_id = True , env = None ,
62
- skip_log_directory = False , expect_error = False , use_backup_dir = True , execution_time = False ):
62
+ skip_log_directory = False , expect_error = False , use_backup_dir = True ):
63
63
"""
64
64
Run pg_probackup
65
65
backup_dir: target directory for making backup
@@ -114,7 +114,7 @@ def run(self, command, gdb=False, old_binary=False, return_id=True, env=None,
114
114
cmdline = ['gdbserver' ] + ['localhost:' + str (gdb_port )] + cmdline
115
115
print ("pg_probackup gdb suspended, waiting gdb connection on localhost:{0}" .format (gdb_port ))
116
116
117
- if execution_time :
117
+ if self . execution_time :
118
118
start_time = time .time ()
119
119
self .test_class .output = subprocess .check_output (
120
120
cmdline ,
@@ -225,8 +225,7 @@ def backup_node(
225
225
old_binary = False , return_id = True , no_remote = False ,
226
226
env = None ,
227
227
expect_error = False ,
228
- sync = False ,
229
- execution_time = False
228
+ sync = False
230
229
):
231
230
if options is None :
232
231
options = []
@@ -266,7 +265,7 @@ def backup_node(
266
265
cmd_list += ['--no-sync' ]
267
266
268
267
return self .run (cmd_list + options , gdb , old_binary , return_id , env = env ,
269
- expect_error = expect_error , execution_time = execution_time )
268
+ expect_error = expect_error )
270
269
271
270
def backup_replica_node (self , instance , node , data_dir = False , * ,
272
271
master , backup_type = 'full' , datname = False ,
0 commit comments