Documentation
¶
Overview ¶
Copyright 2023 The Chromium Authors Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
Index ¶
Constants ¶
View Source
const CCDStatusCommand = "gsctool -aI"
View Source
const ChromeosReleaseBoard = "CHROMEOS_RELEASE_BOARD="
View Source
const ChromeosTestImageReleaseTrack = "chromeos_release_track=testimage-channel"
View Source
const F64Epsilon = 2.2204460492503131e-16
F64Epsilon Machine epsilon value for f64
View Source
const GCSObjectURLTemplate = "https://console.developers.google.com/storage/browser/_details/%s"
GCSObjectURLTemplate the template of log url
View Source
const GSCSerialNumberCommand = "" /* 127-byte string literal not displayed */
View Source
const GetGSCSerialAndServoUSB = "gsc_serial=`" + GSCSerialNumberCommand + "`;" + "servo_usb_count=`" + ServoUSBConnectorCommand + "`;" + "printf \"{\\\"gsc_serial\\\": \\\"%s\\\",\\\"servo_usb_count\\\": %s}\" $gsc_serial $servo_usb_count"
View Source
const GetPeripheralInfoCommand = "fwupdmgr get-devices --json"
GetPeripheralInfoCommand the command of get peripheral information
View Source
const GrepLSBReleaseCommand = "timeout 2 cat /etc/lsb-release"
View Source
const ListFirmwareCommand = "fwid=`timeout 5 crossystem fwid`;" +
"model=`timeout 5 cros_config / name`;" +
"fw_update=`timeout 20 chromeos-firmwareupdate --manifest`;" +
"printf \"{\\\"fwid\\\": \\\"%s\\\",\\\"model\\\": \\\"%s\\\", \\\"fw_update\\\":%s}\" $fwid $model \"$fw_update\""
View Source
const LogDirectory = "/var/log/satlab"
LogDirectory the path of log directory
View Source
const SSHConnectionTimeout = time.Second * 3
SSHConnectionTimeout timeout of ssh connection
View Source
const SSHKeyPath = "/home/moblab/.ssh/testing_rsa"
SSHKeyPath the path where ssh key
View Source
const SSHMaxRetry = 1
SSHMaxRetry the retry time
View Source
const SSHPort = "22"
SSHPort the port of DUT
View Source
const SSHRetryDelay = time.Millisecond * 300
SSHRetryDelay retry delay of ssh
View Source
const SSHUser = "root"
SSHUser the username of DUT ssh
View Source
const ServoUSBConnectorCommand = "timeout 2 cat /sys/bus/usb/devices/*/idVendor | grep -cx 04b4"
View Source
const UpdateFirmwareCommand = "/usr/sbin/chromeos-firmwareupdate --mode autoupdate --force"
View Source
const VPDKeyEthernetMAC = "ethernet_mac"
VPDKeyEthernetMAC VPD key for ethernet mac
View Source
const VPDKeySerialNumber = "serial_number"
VPDKeySerialNumber VPD key for serial number
Variables ¶
View Source
var GetModelCommands = []string{
"cros_config / test-label",
"cros_config / name",
}
View Source
var ToResponseBuildStatusMap = map[build_service.BuildStatus]pb.BuildItem_BuildStatus{ build_service.AVAILABLE: pb.BuildItem_BUILD_STATUS_PASS, build_service.FAILED: pb.BuildItem_BUILD_STATUS_FAIL, build_service.RUNNING: pb.BuildItem_BUILD_STATUS_RUNNING, build_service.ABORTED: pb.BuildItem_BUILD_STATUS_ABORTED, }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.