Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 595982a

Browse files
s.logvinenkos.logvinenko
s.logvinenko
authored and
s.logvinenko
committed
fix archive.py
1 parent fa0a962 commit 595982a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/archive.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -177,13 +177,13 @@ def test_pgpro434_3(self):
177177
self.add_instance(backup_dir, 'node', node)
178178
self.set_archiving(backup_dir, 'node', node)
179179

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:
182182
f.write(archive_script.format(backup_dir=backup_dir, node_name='node', count_limit=2))
183183

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))
187187
node.start()
188188
try:
189189
self.backup_node(backup_dir, 'node', node, options=["--stream"])

0 commit comments

Comments
 (0)