commit | 307c15fd48004f19b8877d0781c76f299e6a9e7d | [log] [tgz] |
---|---|---|
author | Eunice Sun <eunicesun@google.com> | Thu Jun 20 04:23:53 2024 |
committer | LUCI CQ <infra-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Jun 20 04:23:53 2024 |
tree | 3e2551fa7f719cb0523c2b4ffb296dc6d22a822d | |
parent | e06789106abd1dbf81c4d76a9021d9c7babb6a47 [diff] |
cros_test_result: populate dut phase label for CFT result Bug: b:276563954 Test: Unit test "go test ./..." Change-Id: I0cebcede61f03ec78856f16e5f284e32e794e5bf Reviewed-on: https://chromium-review.googlesource.com/c/infra/infra/+/5632341 Reviewed-by: Jason Kusuma <jkusuma@google.com> Reviewed-by: Patrick Meiring <meiring@google.com> Commit-Queue: Eunice Sun <eunicesun@google.com> Reviewed-by: Zhihui Xie <zhihuixie@google.com> Cr-Commit-Position: refs/heads/main@{#66310}
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.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.