summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGui Chen <gui.chen@intel.com>2012-03-16 17:09:32 +0800
committerJF Ding <jian-feng.ding@intel.com>2012-03-16 17:58:57 +0800
commit6b87620ec6120983988255a954800cf6c00478df (patch)
tree57622ee64a03836d4bbfa8af69f0f889a64448e6 /tests
parent7f58723f8f40f0a317f9f630ec51b6ed8f403a2d (diff)
downloadmic-6b87620ec6120983988255a954800cf6c00478df.tar.gz
mic-6b87620ec6120983988255a954800cf6c00478df.tar.bz2
mic-6b87620ec6120983988255a954800cf6c00478df.zip
unittest: update suite.py to append new cases
Signed-off-by: Gui Chen <gui.chen@intel.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/unittest/suite.py6
-rw-r--r--tests/unittest/test_msger.py1
2 files changed, 7 insertions, 0 deletions
diff --git a/tests/unittest/suite.py b/tests/unittest/suite.py
index d738d00..7a7475d 100644
--- a/tests/unittest/suite.py
+++ b/tests/unittest/suite.py
@@ -4,6 +4,9 @@ import unittest
import test_configmgr
import test_pluginmgr
import test_baseimager
+import test_msger
+import test_runner
+import test_chroot
if os.getuid() != 0:
raise SystemExit("Root permission is needed")
@@ -12,5 +15,8 @@ suite = unittest.TestSuite()
suite.addTests(test_pluginmgr.suite())
suite.addTests(test_configmgr.suite())
suite.addTests(test_baseimager.suite())
+suite.addTests(test_msger.suite())
+suite.addTests(test_runner.suite())
+suite.addTests(test_chroot.suite())
result = unittest.TextTestRunner(verbosity=2).run(suite)
sys.exit(not result.wasSuccessful())
diff --git a/tests/unittest/test_msger.py b/tests/unittest/test_msger.py
index c419a15..be57b2f 100644
--- a/tests/unittest/test_msger.py
+++ b/tests/unittest/test_msger.py
@@ -16,6 +16,7 @@ class MsgerTest(unittest.TestCase):
self.stderr = sys.stderr
sys.stdout = StringIO.StringIO()
sys.stderr = StringIO.StringIO()
+ msger.set_loglevel('normal')
self.loglevel = msger.LOG_LEVEL
def tearDown(self):