Patch unixbench 4.1.0 to support parallel make
[autotest-zwu.git] / frontend / frontend_unittest.py
blobe0e37f1f7e04fb0c4589b2a9df0e5837310e53d4
1 #!/usr/bin/python
3 import unittest, os
4 import common
5 from autotest_lib.frontend import setup_django_environment
6 from autotest_lib.frontend import setup_test_environment
7 from autotest_lib.frontend.afe import test, readonly_connection
8 from autotest_lib.client.common_lib import global_config
10 _APP_DIR = os.path.join(os.path.dirname(__file__), 'afe')
12 class FrontendTest(unittest.TestCase):
13 def setUp(self):
14 setup_test_environment.set_up()
15 global_config.global_config.override_config_value(
16 'AUTOTEST_WEB', 'parameterized_jobs', 'False')
19 def tearDown(self):
20 setup_test_environment.tear_down()
23 def test_all(self):
24 doctest_runner = test.DoctestRunner(_APP_DIR, 'frontend.afe')
25 errors = doctest_runner.run_tests()
26 self.assert_(errors == 0, '%s failures in frontend unit tests' % errors)
29 if __name__ == '__main__':
30 unittest.main()