1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-07-05 05:50:16 +02:00

tests: changes to tests.README and minor corrections

This commit is contained in:
Grigory Smolkin
2018-01-18 17:15:15 +03:00
parent e1e628110c
commit 9e44d505bc
4 changed files with 19 additions and 5 deletions

View File

@ -967,7 +967,8 @@ class ValidateTest(ProbackupTest, unittest.TestCase):
# Delete wal segment
wals_dir = os.path.join(backup_dir, 'wal', 'node')
wals = [f for f in os.listdir(wals_dir) if os.path.isfile(os.path.join(wals_dir, f)) and not f.endswith('.backup')]
file = os.path.join(backup_dir, 'wal', 'node', wals[1])
wals.sort()
file = os.path.join(backup_dir, 'wal', 'node', wals[3])
os.remove(file)
# cut out '.gz'