commit | c06551cef744d23b0e2330969a66fd18962108a7 | [log] [tgz] |
---|---|---|
author | Srinivas Hegde <srinivashegde@google.com> | Fri Nov 01 23:11:14 2024 |
committer | LUCI CQ <infra-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Nov 01 23:11:14 2024 |
tree | 661c38981e7e785deae28eb006b94ae62dcb1705 | |
parent | b68495dbbb363206f76ddf3668fa83fb71678697 [diff] |
Add module properties to test identifier to diff resutlts Test results from different runs have the same id. Add module level props to the test identifier to differentiate them between runs. Bug: b:376079272 Change-Id: Id03df6dde097e4f64363ba0e076a68bf9c9d2fcb Reviewed-on: https://chromium-review.googlesource.com/c/infra/infra/+/5984059 Reviewed-by: Maxim Siniavine <siniavine@google.com> Reviewed-by: Azizur Rahman <azrahman@google.com> Commit-Queue: Srinivas Hegde <srinivashegde@google.com> Cr-Commit-Position: refs/heads/main@{#69584}
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.