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

Move from pg_ctl to .stop/.start from new testgres.

This commit is contained in:
stalkerg
2016-12-20 15:46:19 +03:00
parent 9d17c122fb
commit 20f055f309
2 changed files with 25 additions and 126 deletions

View File

@ -47,12 +47,7 @@ class ValidateTest(ProbackupTest, unittest.TestCase):
target_xid = res[0][0]
node.execute("postgres", "SELECT pg_switch_xlog()")
node.pg_ctl("stop", {
"-D": node.data_dir,
"-w": None,
"-m": "immediate"
})
node.stop({"-m": "immediate"})
wals_dir = path.join(self.backup_dir(node), "wal")
wals = [f for f in listdir(wals_dir) if path.isfile(path.join(wals_dir, f))]