Skip to content

Commit e88da4f

Browse files
author
Sergey Fukanchik
committed
[PBCKP-314] Do cleanup backup dir in test_init_backup_catalog_no_access and test_init_backup_catalog_no_write.
1 parent cdb56ab commit e88da4f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/init.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def test_init_backup_catalog_no_access(self):
177177

178178
expected = 'ERROR: cannot open backup catalog directory "{0}": Permission denied'.format(backup_dir)
179179
with self.assertRaisesRegex(ProbackupException, expected):
180-
self.init_pb(backup_dir, cleanup=False)
180+
self.init_pb(backup_dir)
181181

182182
# Clean after yourself
183183
self.del_test_dir(module_name, fname)
@@ -194,7 +194,7 @@ def test_init_backup_catalog_no_write(self):
194194

195195
expected = 'ERROR: Can not create backup catalog root directory: Cannot make dir "{0}": Permission denied'.format(backup_dir)
196196
with self.assertRaisesRegex(ProbackupException, expected):
197-
self.init_pb(backup_dir, cleanup=False)
197+
self.init_pb(backup_dir)
198198

199199
# Clean after yourself
200200
self.del_test_dir(module_name, fname)

0 commit comments

Comments
 (0)