1
0
mirror of https://github.com/postgrespro/pg_probackup.git synced 2025-04-12 11:58:15 +02:00

tests: validate fix (windows support)

This commit is contained in:
Grigory Smolkin 2018-12-28 19:24:55 +03:00
parent 723c2b01a2
commit c69d4ed7f8

View File

@ -56,7 +56,7 @@ class ValidateTest(ProbackupTest, unittest.TestCase):
with open(log_file_path) as f:
self.assertTrue(
'LOG: File: {0} blknum 1, empty page'.format(file) in f.read(),
'{0} blknum 1, empty page'.format(file_path) in f.read(),
'Failed to detect nullified block')
self.validate_pb(backup_dir)
@ -3134,6 +3134,7 @@ class ValidateTest(ProbackupTest, unittest.TestCase):
self.run_binary(
[
pg_resetxlog_path,
'-D',
os.path.join(backup_dir, 'backups', 'node', backup_id, 'database'),
'-o 42',
'-f'