commit | 52dedf0a73c8eee143293db6420a929cded7fa3d | [log] [tgz] |
---|---|---|
author | Jordan R Abrahams-Whitehead <ajordanr@google.com> | Fri Jan 13 00:20:47 2023 +0000 |
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | Fri Jan 13 18:05:58 2023 +0000 |
tree | c952e1e8c3d06749309844b1c5f992df6ae88176 | |
parent | 166ed9b034af662e5abcf714d60bbc3102d27ef5 [diff] |
llvm_tools: Retain indent style for PATCHES.json At present, patch_utils.py and get_upstream_patch.py enforce a spacing style of 4 spaces per indentation level. However, cros format requires an indentation style of 2 spaces per indentation level. This alters the tooling so that they preserve the indentation level of the existing file. The implementation here isn't as clean as in patch_sync, but it achieves reliable results. Existing patch_utils testing covers this new function already. BUG=b:265348099 TEST=./patch_utils_unittest; ./patch_manager_unittest.py TEST=Ran get_upstream_patch.py before/after cros format TEST=build llvm Change-Id: I2058fddefbf01837907ce891acfc0f2c318f51b4 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/4160480 Reviewed-by: George Burgess <gbiv@chromium.org> Tested-by: Jordan Abrahams-Whitehead <ajordanr@google.com> Commit-Queue: Jordan Abrahams-Whitehead <ajordanr@google.com>
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.