def Main(argv): pds = [ dashboard_dev_server_config.DashboardDevServerConfig(), perf_insights_dev_server_config.PerfInsightsDevServerConfig(), tracing_dev_server_config.TracingDevServerConfig(), lighthouse_dev_server_config.LighthouseDevServerConfig(), ] args = _AddCommandLineArguments(pds, argv) if args.install_hooks: install.InstallHooks() app = DevServerApp(pds, args=args) server = httpserver.serve(app, host='127.0.0.1', port=args.port, start_loop=False) _AddPleaseExitMixinToServer(server) # pylint: disable=no-member server.urlbase = 'http://127.0.0.1:%i' % server.server_port app.server = server sys.stderr.write('Now running on %s\n' % server.urlbase) return server.serve_forever()
def setUp(self): self.pds = [ perf_insights_dev_server_config.PerfInsightsDevServerConfig(), tracing_dev_server_config.TracingDevServerConfig(), ] self.args = dev_server._AddCommandLineArguments(self.pds, [])
def Main(argv): pds = [ perf_insights_dev_server_config.PerfInsightsDevServerConfig(), tracing_dev_server_config.TracingDevServerConfig(), ] args = _AddCommandLineArguments(pds, argv) if args.install_hooks: install.InstallHooks() app = CreateApp(pds, args) server = httpserver.serve(app, host='127.0.0.1', port=args.port, start_loop=False) _AddPleaseExitMixinToServer(server) app.server = server sys.stderr.write('Now running on http://127.0.0.1:%i\n' % server.server_port) return server.serve_forever()