blob: dea87ab41c9fb0563a72d41847631a0ef9cd6d72 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
import os
import sys
import unittest
import test_configmgr
import test_pluginmgr
import test_baseimager
#import test_msger
import test_runner
import test_chroot
import test_proxy
if os.getuid() != 0:
raise SystemExit("Root permission is needed")
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())
suite.addTests(test_proxy.suite())
result = unittest.TextTestRunner(verbosity=2).run(suite)
sys.exit(not result.wasSuccessful())
|