commit | 101ed2693fdd440bd091802e46578e48bb82fec1 | [log] [tgz] |
---|---|---|
author | Przemek Filipek <filipek@google.com> | Fri Jun 14 07:28:49 2024 |
committer | LUCI CQ <infra-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Jun 14 07:28:49 2024 |
tree | 9cdf0ffd2822665803145130a0c3f9077cbb68af | |
parent | 05c407f14ac2ed29c41f512afda26353945bd0c9 [diff] |
cft: add backward compatibility for testplans Tests in testplan when they are run via CFT, then they need a different format. This change convert the old formatted testplan into new format. BUG=b:331799928 TEST=env CGO_ENABLED=0 go test ./...; test run ci.chromium.org/b/8745334270409842993 Change-Id: I2203be6d6dbcb1859747e2f35e775de8f0f68af3 Reviewed-on: https://chromium-review.googlesource.com/c/infra/infra/+/5625752 Reviewed-by: Jacek Klimkowicz <klimkowicz@google.com> Commit-Queue: Przemysław Filipek <filipek@google.com> Cr-Commit-Position: refs/heads/main@{#66234}
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.