commit | 081dbfe709ba03290ee6203098b844b78317961c | [log] [tgz] |
---|---|---|
author | Jordan R Abrahams-Whitehead <ajordanr@google.com> | Thu Jul 21 20:28:59 2022 +0000 |
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Jul 21 21:13:25 2022 +0000 |
tree | 63c355a2e5a8f8449b4744b0db3da763e528a584 | |
parent | b3b2c8514865be8650dc9c4f42fd081a255643b8 [diff] |
llvm_tools: Clean up on apply_all_from_json At present, update_chromeos_llvm_hash.py will keep trying to apply patches from separate llvm subprojects, to the same LLVM dir. This causes patches to stack, so that the second time it applies the same patch it then fails to apply. This commit fixes the issue by cleaning up the git directory on every stage of the loop. This commit also fixes some type casts. BUG=b:239279349, b:239280701 TEST=./update_chromeos_llvm_hash_unittest.py TEST=./update_packages_and_run_tests.py \ --extra_change_lists 1394249 1986966 \ --chroot_path $CROS_ROOT \ --llvm_version google3 cq Change-Id: I6cc853d80c47fefaba4ff0b5133787b716177567 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/3780679 Commit-Queue: Jordan Abrahams-Whitehead <ajordanr@google.com> Tested-by: Jordan Abrahams-Whitehead <ajordanr@google.com> Reviewed-by: Christopher Di Bella <cjdb@google.com> Commit-Queue: Christopher Di Bella <cjdb@google.com> Reviewed-by: Manoj Gupta <manojgupta@chromium.org>
toolchain-utils
Various utilities used by the ChromeOS 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.