def SpawnTestWebServer(self, s_type, doc_root):
        class Options(object):
            log_to_console = True
            server_type = s_type
            port = self.server.test_server_port
            data_dir = doc_root or "chrome/test/data"
            file_root_url = "/files/"
            cert = False
            policy_keys = None
            policy_user = None
            startup_pipe = None

        options = Options()
        logging.info("Listening on %d, type %d, data_dir %s" % (options.port, options.server_type, options.data_dir))
        testserver.main(options, None, server_list=_test_servers)
        logging.info("Test-server has died.")
    def SpawnTestWebServer(self, s_type, doc_root):
        class Options(object):
            log_to_console = True
            server_type = s_type
            port = self.server.test_server_port
            data_dir = doc_root or 'chrome/test/data'
            file_root_url = '/files/'
            cert = False
            policy_keys = None
            policy_user = None
            startup_pipe = None

        options = Options()
        logging.info('Listening on %d, type %d, data_dir %s' %
                     (options.port, options.server_type, options.data_dir))
        testserver.main(options, None, server_list=_test_servers)
        logging.info('Test-server has died.')
예제 #3
0
 def SpawnTestWebServer(self, test_server_arguments):
     options = TestServerOptions(test_server_arguments)
     logging.info("Listening on %d, type %d, data_dir %s" % (options.port, options.server_type, options.data_dir))
     testserver.main(options, None, server_list=_test_servers)
     logging.info("Test-server has died.")