1# Copyright 2022 The Chromium OS Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4"""Starts a GSCDevboardHost manually for local testing.""" 5 6import logging 7import os 8 9import common 10from autotest_lib.server.hosts import gsc_devboard_host 11 12# Start service per env vars DOCKER_HOST, DEBUGGER_SERIAL, DEVBOARDSVC_PORT 13logging.basicConfig(level=logging.INFO) 14e = os.environ 15h = gsc_devboard_host.GSCDevboardHost() 16h._initialize('', 17 service_debugger_serial=e.get('DEBUGGER_SERIAL'), 18 service_port=e.get('DEVBOARDSVC_PORT', 19 gsc_devboard_host.DEFAULT_SERVICE_PORT)) 20h.start_service() 21logging.info("Service started, container endpoint at %s:%s", h.service_ip, 22 h.service_port) 23