commit | 018c7a78becfb2079a615394759ce5d3d10938ce | [log] [tgz] |
---|---|---|
author | George Burgess IV <gbiv@google.com> | Wed Sep 15 16:29:56 2021 -0700 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Sep 16 14:54:40 2021 +0000 |
tree | c830c844872e450e280c6a161831dd3c21dfc72a | |
parent | cfc2bb91ab094d38073daa483d9c4aec3cda8d23 [diff] |
run_tests_for: recognize `test_`/`unittest_` prefixes as tests Apparently some upstream conventions use `test_${x}.py` instead of this repo's standard of `${x}_(test|unittest).py`. Either seems fine, and supporting both seems simple. This includes some formatting updates from yapf. BUG=None TEST=`./run_tests_for.py llvm_tools/*.py` TEST=Made a new test_foo.py script; saw that it was picked up. Change-Id: I533a9395227d8342411cacfbd1bb6d5c63b8ec2a Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/3163797 Reviewed-by: Jordan R Abrahams <ajordanr@google.com> Commit-Queue: George Burgess <gbiv@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.