def setUp(self):
     autotest_dir = os.path.abspath(os.path.join(setup_modules.dirname,
                                                 '..'))
     setup_modules.setup(autotest_dir, root_module_name='autotest_lib')
     self.god = mock.mock_god()
     self.test_stderr = cStringIO.StringIO()
     self.god.stub_with(sys, 'stderr', self.test_stderr)
     self.old_root_logging_level = logging.root.level
     logging.basicConfig(level=logging.ERROR)
 def setUp(self):
     autotest_dir = os.path.abspath(
         os.path.join(setup_modules.dirname, '..'))
     setup_modules.setup(autotest_dir, root_module_name='autotest_lib')
     self.god = mock.mock_god()
     self.test_stderr = cStringIO.StringIO()
     self.god.stub_with(sys, 'stderr', self.test_stderr)
     self.old_root_logging_level = logging.root.level
     logging.basicConfig(level=logging.ERROR)
     # _autotest_logging_handle_error unsets this after being called once.
     logging.raiseExceptions = 1
 def setUp(self):
     autotest_dir = os.path.abspath(os.path.join(setup_modules.dirname,
                                                 '..'))
     setup_modules.setup(autotest_dir, root_module_name='autotest_lib')
     self.god = mock.mock_god()
     self.test_stderr = cStringIO.StringIO()
     self.god.stub_with(sys, 'stderr', self.test_stderr)
     self.old_root_logging_level = logging.root.level
     logging.basicConfig(level=logging.ERROR)
     # _autotest_logging_handle_error unsets this after being called once.
     logging.raiseExceptions = 1