File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -177,13 +177,13 @@ def test_pgpro434_3(self):
177
177
self .add_instance (backup_dir , 'node' , node )
178
178
self .set_archiving (backup_dir , 'node' , node )
179
179
180
- archive_script = os .path .join (backup_dir ,'archive_script.sh' )
181
- with open (archive_script , 'w+' ) as f :
180
+ archive_script_path = os .path .join (backup_dir ,'archive_script.sh' )
181
+ with open (archive_script_path , 'w+' ) as f :
182
182
f .write (archive_script .format (backup_dir = backup_dir , node_name = 'node' , count_limit = 2 ))
183
183
184
- st = os .stat (archive_script )
185
- os .chmod (archive_script , st .st_mode | 0o111 )
186
- node .append_conf ('postgresql.auto.conf' , "archive_command = '{0} %p %f'" .format (archive_script ))
184
+ st = os .stat (archive_script_path )
185
+ os .chmod (archive_script_path , st .st_mode | 0o111 )
186
+ node .append_conf ('postgresql.auto.conf' , "archive_command = '{0} %p %f'" .format (archive_script_path ))
187
187
node .start ()
188
188
try :
189
189
self .backup_node (backup_dir , 'node' , node , options = ["--stream" ])
You can’t perform that action at this time.
0 commit comments