commit | c3ef8fb837482ad60e05d3c7c0638970bc4d2578 | [log] [tgz] |
---|---|---|
author | George Burgess IV <gbiv@google.com> | Tue May 05 10:22:33 2020 -0700 |
committer | George Burgess <gbiv@chromium.org> | Tue May 05 17:44:02 2020 +0000 |
tree | 3555f833952da1ed9e8b8442243dbf3c4b35696e | |
parent | 4ceeb16b9162334c929d7232e5b7a2c96e9189f7 [diff] |
githooks: enter the chroot in presubmits In general, running tests is likely best done in a consistent environment. The more pressing concern here is that depot_tools doesn't fully support python3 yet, so things like our `yapf` check always fail outside of the chroot, if they happen to pick up on depot_tools' yapf. BUG=chromium:1030828 TEST=Ran presubmits on files with type annotations. They now work inside or outside of the chroot. Change-Id: If22a3766e01ea26ebc9e78bc4b40d90ad5d49049 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/2182163 Reviewed-by: Tiancong Wang <tcwang@google.com> Reviewed-by: Manoj Gupta <manojgupta@chromium.org> Tested-by: George Burgess <gbiv@chromium.org>
toolchain-utils
Various utilities used by the Chrome OS toolchain team.
To run Python scripts in this directory, first run:
export PYTHONPATH=$(readlink -f .):$PYTHONPATH
from this directory.
Then you can run any script.
To get help on any script, type in python <script> --help
, or refer to the header of the script for more information.