Fixing utils/unittest_suite.py --full

Signed-off-by: Jean-Marc Eurin <[email protected]>

--- autotest/frontend/afe/frontend_test_utils.py        2010-07-14 
12:42:00.000000000 -0700
+++ autotest/frontend/afe/frontend_test_utils.py        2011-02-14 
10:38:12.000000000 -0800
@@ -68,6 +68,9 @@
         setup_test_environment.set_up()
         global_config.global_config.override_config_value(
                 'AUTOTEST_WEB', 'parameterized_jobs', 'False')
+        global_config.global_config.override_config_value(
+                'SERVER', 'rpc_logging', 'False')
+
         if fill_data:
             self._fill_in_test_data()
 
--- autotest/frontend/afe/resources_test.py     2010-04-16 17:28:37.000000000 
-0700
+++ autotest/frontend/afe/resources_test.py     2011-02-14 10:38:12.000000000 
-0800
@@ -2,6 +2,14 @@
 
 import common
 import unittest
+
+# This has to be done very early.
+from autotest_lib.client.common_lib import global_config
+global_config.global_config.override_config_value(
+    'HOSTS', 'default_protection',
+    'NO_PROTECTION')
+from autotest_lib.client.common_lib import host_protections
+
 from autotest_lib.frontend import setup_django_environment
 from autotest_lib.frontend import setup_test_environment
 from django.test import client
--- autotest/frontend/frontend_unittest.py      2010-07-19 15:52:25.000000000 
-0700
+++ autotest/frontend/frontend_unittest.py      2011-02-14 10:38:12.000000000 
-0800
@@ -14,6 +14,8 @@
         setup_test_environment.set_up()
         global_config.global_config.override_config_value(
                 'AUTOTEST_WEB', 'parameterized_jobs', 'False')
+        global_config.global_config.override_config_value(
+                'SERVER', 'rpc_logging', 'False')
 
 
     def tearDown(self):
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest

Reply via email to