tests fixes, del_test_dir added

This commit is contained in:
Grigory Smolkin
2017-06-27 08:42:52 +03:00
parent 9c7eae6753
commit 49a8575456
25 changed files with 673 additions and 1060 deletions
+9 -9
View File
@@ -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)