Revision 25231ec5 test/testutils.py
b/test/testutils.py | ||
---|---|---|
25 | 25 |
import stat |
26 | 26 |
import tempfile |
27 | 27 |
import unittest |
28 |
import logging |
|
28 | 29 |
|
29 | 30 |
from ganeti import utils |
30 | 31 |
|
... | ... | |
33 | 34 |
return os.environ.get("TOP_SRCDIR", ".") |
34 | 35 |
|
35 | 36 |
|
37 |
class GanetiTestProgram(unittest.TestProgram): |
|
38 |
def runTests(self): |
|
39 |
""" |
|
40 |
|
|
41 |
""" |
|
42 |
logging.basicConfig(filename=os.devnull) |
|
43 |
return unittest.TestProgram.runTests(self) |
|
44 |
|
|
45 |
|
|
36 | 46 |
class GanetiTestCase(unittest.TestCase): |
37 | 47 |
"""Helper class for unittesting. |
38 | 48 |
|
Also available in: Unified diff