Skip to content

Commit 2c788b7

Browse files
committed
Fix del_instance function to receive options from tests
1 parent 0edc937 commit 2c788b7

File tree

1 file changed

+10
-8
lines changed
  • testgres/plugins/pg_probackup2/pg_probackup2

1 file changed

+10
-8
lines changed

testgres/plugins/pg_probackup2/pg_probackup2/app.py

+10-8
Original file line numberDiff line numberDiff line change
@@ -189,14 +189,16 @@ def set_backup(self, instance, backup_id=False,
189189

190190
return self.run(cmd + options, old_binary=old_binary, expect_error=expect_error)
191191

192-
def del_instance(self, instance, old_binary=False, expect_error=False):
193-
194-
return self.run([
195-
'del-instance',
196-
'--instance={0}'.format(instance),
197-
],
198-
old_binary=old_binary,
199-
expect_error=expect_error
192+
def del_instance(self, instance, options=None, old_binary=False, expect_error=False):
193+
if options == None:
194+
options = []
195+
cmd = [
196+
'del-instance',
197+
'--instance={0}'.format(instance),
198+
] + options
199+
return self.run(cmd,
200+
old_binary=old_binary,
201+
expect_error=expect_error
200202
)
201203

202204
def backup_node(

0 commit comments

Comments
 (0)