mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2025-04-23 13:08:50 +02:00
tests: validate fix (windows support)
This commit is contained in:
parent
723c2b01a2
commit
c69d4ed7f8
@ -56,7 +56,7 @@ class ValidateTest(ProbackupTest, unittest.TestCase):
|
|||||||
|
|
||||||
with open(log_file_path) as f:
|
with open(log_file_path) as f:
|
||||||
self.assertTrue(
|
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')
|
'Failed to detect nullified block')
|
||||||
|
|
||||||
self.validate_pb(backup_dir)
|
self.validate_pb(backup_dir)
|
||||||
@ -3134,6 +3134,7 @@ class ValidateTest(ProbackupTest, unittest.TestCase):
|
|||||||
self.run_binary(
|
self.run_binary(
|
||||||
[
|
[
|
||||||
pg_resetxlog_path,
|
pg_resetxlog_path,
|
||||||
|
'-D',
|
||||||
os.path.join(backup_dir, 'backups', 'node', backup_id, 'database'),
|
os.path.join(backup_dir, 'backups', 'node', backup_id, 'database'),
|
||||||
'-o 42',
|
'-o 42',
|
||||||
'-f'
|
'-f'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user