constants

package
v0.0.0-...-d996d1d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2025 License: BSD-3-Clause Imports: 3 Imported by: 0

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",
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL