commit | f6a6799245c7e97bd50d992096acf3ad28ec1fbb | [log] [tgz] |
---|---|---|
author | Eshwar Narayan <eshwarn@google.com> | Thu Mar 18 17:12:23 2021 |
committer | LUCI CQ <infra-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Mar 18 17:12:23 2021 |
tree | c8c191511570019d14fddd123148c46bf97a9934 | |
parent | 40ee0a340b9664ae481a7edbde771bf10e2ec890 [diff] |
shivas: fix rpm display for labstation Bug: none Test: run local command; ./shivas get dut chromeos2-row9-rack2-labstation1 Hostname: chromeos2-row9-rack2-labstation1 Inventory Id: C151318 Servo: None RPM: hostname chromeos6-row9_10-rack2-rpm3 outlet AA1 ./shivas get dut -full chromeos2-row9-rack2-labstation1 Hostname: chromeos2-row9-rack2-labstation1 Inventory Id: C151318 Serial number: 0WGTFQIN19178187 Model: wukong Board: fizz-labstation ReferenceDesign: Variant: HWID: WUKONG E6B-B5N-U2D-D3Q-A4W State: STATE_REGISTERED Servo: None RPM: hostname chromeos6-row9_10-rack2-rpm3 outlet AA1 Change-Id: I2ef3d4dff5fc932c42e1bc7d7bcdb9f3ba5130d4 Reviewed-on: https://chromium-review.googlesource.com/c/infra/infra/+/2773439 Reviewed-by: Xixuan Wu <xixuan@chromium.org> Commit-Queue: Eshwar Narayan <eshwarn@chromium.org> Cr-Commit-Position: refs/heads/master@{#39487}
Testing Welcome to the Chrome Infra repository!
Wondering where to start? Check out General Chrome Infrastructure documentation. In particular, to check out this repo and the rest of the infrastructure code, follow the instructions here. The rest of this page is specific to this repo.
sys.path
modifications.from infra.path_hacks.common import <stg>
is actually getting <stg>
from build/scripts/common.git push origin <updated hash>:deployed
git push
commandIf you've added a new module, run your tests with test.py:
*_test.py
files to this directory.Double-check that your tests are getting picked up when you want them to be: ./test.py test <path-to-package>
.
Tests still not getting picked up by test.py? Double-check to make sure you have __init__.py
files in each directory of your module so Python recognizes it as a package.
The preferred style is PEP8 with two-space indent; that is, the Chromium Python style, except functions use lowercase_with_underscores
. Use yapf (git cl format
) to autoformat new code.