commit | 8f20b70edb7d57e1fb618b36fc51e5add64cb6fc | [log] [tgz] |
---|---|---|
author | Vadim Shtayura <vadimsh@chromium.org> | Thu Jan 03 22:35:30 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Jan 03 22:35:30 2019 |
tree | 0e7cc5b541e97424dae34c3b8f1430317bf4188f | |
parent | 2862517a233d1082ec95937d26b4baadda1b306a [diff] |
[lucicfg] Add a mode for tests in which error(...) immediately aborts execution. Note that by default error(...) just collects the error without aborting the script, all collected errors are reported at the end. fail_on_errors() mode is useful for writing smallish unit tests that check error detection logic. R=tandrii@chromium.org, nodir@chromium.org BUG=833946 Change-Id: I0ca06978871ec1733ba12d9104fb6675eec99467 Reviewed-on: https://chromium-review.googlesource.com/c/1394190 Reviewed-by: Andrii Shyshkalov <tandrii@chromium.org> Commit-Queue: Vadim Shtayura <vadimsh@chromium.org>
LUCI Go code is meant to be worked on from an Chromium infra.git checkout, which enforces packages versions and Go toolchain version. First get fetch via depot_tools.git then run:
fetch infra cd infra/go eval `./env.py` cd src/go.chromium.org/luci
Contributing uses the same flow as Chromium contributions.