X-Git-Url: https://code.grnet.gr/git/ganeti-local/blobdiff_plain/4b5e82711fccb3b961d9fa86b36abcf67ea7e44e..8a28f5913a147a89fed67c75ad301bc109b0ac61:/test/ganeti.hooks_unittest.py diff --git a/test/ganeti.hooks_unittest.py b/test/ganeti.hooks_unittest.py index 55fa721..594c321 100755 --- a/test/ganeti.hooks_unittest.py +++ b/test/ganeti.hooks_unittest.py @@ -39,11 +39,15 @@ from ganeti.constants import HKR_SUCCESS, HKR_FAIL, HKR_SKIP from mocks import FakeConfig, FakeProc, FakeContext +import testutils + + class FakeLU(cmdlib.LogicalUnit): HPATH = "test" def BuildHooksEnv(self): return {}, ["localhost"], ["localhost"] + class TestHooksRunner(unittest.TestCase): """Testing case for HooksRunner""" def setUp(self): @@ -266,5 +270,6 @@ class TestHooksMaster(unittest.TestCase): for phase in (constants.HOOKS_PHASE_PRE, constants.HOOKS_PHASE_POST): hm.RunPhase(phase) + if __name__ == '__main__': - unittest.main() + testutils.GanetiTestProgram()