diff options
author | Jian Cai <jiancai@google.com> | 2020-03-19 21:24:59 -0700 |
---|---|---|
committer | Jian Cai <jiancai@google.com> | 2020-03-25 22:45:38 +0000 |
commit | 58c49f6faa951fdf0bb51e97f4ad3c77528b07c4 (patch) | |
tree | 87cad43a0889f432e88a1c4aa2afb3b376da5492 /llvm_tools/modify_a_tryjob.py | |
parent | eb6e55f2b6f0f99aae9a4dbccf9970b1dfb5d1ca (diff) | |
download | toolchain-utils-58c49f6faa951fdf0bb51e97f4ad3c77528b07c4.tar.gz |
llvm_tools: parameterize update_chromeos_llvm_next_hash.py
Currently update_chromeos_llvm_next_hash.py can only be used to create
CLs that update LLVM_NEXT_HASH in toolchain-related ebuild files, as it
hardcoded which git hash to update. This change allows users to choose
betwen LLVM_HASH and LLVM_NEXT_HASH, and therefore can be used to create
LLVM roll CLs automatically.
BUG=chromium:1057428
TEST=local tests
Change-Id: Ifc0cadb7b618d4780aceb92dcc8891941c612ecb
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/2112250
Reviewed-by: Bob Haarman <inglorion@chromium.org>
Reviewed-by: Manoj Gupta <manojgupta@chromium.org>
Tested-by: Jian Cai <jiancai@google.com>
Diffstat (limited to 'llvm_tools/modify_a_tryjob.py')
-rwxr-xr-x | llvm_tools/modify_a_tryjob.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm_tools/modify_a_tryjob.py b/llvm_tools/modify_a_tryjob.py index 20ba3541..6ea5e893 100755 --- a/llvm_tools/modify_a_tryjob.py +++ b/llvm_tools/modify_a_tryjob.py @@ -118,7 +118,8 @@ def GetCLAfterUpdatingPackages(packages, git_hash, svn_version, chroot_path, """Updates the packages' LLVM_NEXT.""" change_list = update_chromeos_llvm_next_hash.UpdatePackages( - packages, git_hash, svn_version, chroot_path, patch_metadata_file, + packages, update_chromeos_llvm_next_hash.LLVMVariant.next, git_hash, + svn_version, chroot_path, patch_metadata_file, FailureModes.DISABLE_PATCHES, svn_option) print('\nSuccessfully updated packages to %d' % svn_version) |