mirror of
https://github.com/postgrespro/pg_probackup.git
synced 2026-06-21 01:34:15 +02:00
tests fixes, del_test_dir added
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import os
|
||||
import unittest
|
||||
from sys import exit
|
||||
from testgres import get_new_node, stop_all
|
||||
from helpers.ptrack_helpers import ProbackupTest, idx_ptrack
|
||||
from testgres import stop_all, clean_all
|
||||
from .helpers.ptrack_helpers import ProbackupTest, idx_ptrack
|
||||
import shutil
|
||||
|
||||
|
||||
class SimpleTest(ProbackupTest, unittest.TestCase):
|
||||
@@ -10,9 +10,10 @@ class SimpleTest(ProbackupTest, unittest.TestCase):
|
||||
super(SimpleTest, self).__init__(*args, **kwargs)
|
||||
self.module_name = 'ptrack_vacuum_bits_frozen'
|
||||
|
||||
def teardown(self):
|
||||
# clean_all()
|
||||
stop_all()
|
||||
# @classmethod
|
||||
# def tearDownClass(cls):
|
||||
# clean_all()
|
||||
# shutil.rmtree(os.path.join(self.tmp_path, self.module_name), ignore_errors=True)
|
||||
|
||||
# @unittest.skip("skip")
|
||||
# @unittest.expectedFailure
|
||||
@@ -69,7 +70,6 @@ class SimpleTest(ProbackupTest, unittest.TestCase):
|
||||
|
||||
# compare pages and check ptrack sanity
|
||||
self.check_ptrack_sanity(idx_ptrack[i])
|
||||
node.stop()
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
# Clean after yourself
|
||||
self.del_test_dir(self.module_name, fname)
|
||||
|
||||
Reference in New Issue
Block a user