diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2021-07-14 00:47:18 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2021-07-14 00:47:18 +0000 |
commit | b38deade70675ef32068da454167f15391f0b0cc (patch) | |
tree | 73936aba47fe1dc71e9cc05af9747036e935608c /llvm_tools/update_all_tryjobs_with_auto.py | |
parent | b75f321fc8978b92ce3db6886ccb966768f0c7a8 (diff) | |
parent | 4e4201457e5f51a132101c611c79ccff9f713c8b (diff) | |
download | toolchain-utils-b38deade70675ef32068da454167f15391f0b0cc.tar.gz |
Snap for 7547121 from 4e4201457e5f51a132101c611c79ccff9f713c8b to mainline-permission-releaseandroid-mainline-12.0.0_r93android-mainline-12.0.0_r79android-mainline-12.0.0_r64android-mainline-12.0.0_r51android-mainline-12.0.0_r34android-mainline-12.0.0_r15android-mainline-12.0.0_r123android-mainline-12.0.0_r107android12-mainline-permission-release
Change-Id: I90d0ea41f2b9022539f6cb91167a3722187642a8
Diffstat (limited to 'llvm_tools/update_all_tryjobs_with_auto.py')
-rwxr-xr-x | llvm_tools/update_all_tryjobs_with_auto.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/llvm_tools/update_all_tryjobs_with_auto.py b/llvm_tools/update_all_tryjobs_with_auto.py index 511bfffa..11e67ed4 100755 --- a/llvm_tools/update_all_tryjobs_with_auto.py +++ b/llvm_tools/update_all_tryjobs_with_auto.py @@ -12,9 +12,8 @@ import argparse import json import os -from assert_not_in_chroot import VerifyOutsideChroot -from update_tryjob_status import GetAutoResult -from update_tryjob_status import TryjobStatus +import chroot +import update_tryjob_status def GetPathToUpdateAllTryjobsWithAutoScript(): @@ -59,7 +58,7 @@ def GetCommandLineArgs(): def main(): """Updates the status of a tryjob.""" - VerifyOutsideChroot() + chroot.VerifyOutsideChroot() args_output = GetCommandLineArgs() @@ -67,9 +66,9 @@ def main(): bisect_contents = json.load(tryjobs) for tryjob in bisect_contents['jobs']: - if tryjob['status'] == TryjobStatus.PENDING.value: - tryjob['status'] = GetAutoResult(args_output.chroot_path, - tryjob['buildbucket_id']) + if tryjob['status'] == update_tryjob_status.TryjobStatus.PENDING.value: + tryjob['status'] = update_tryjob_status.GetAutoResult( + args_output.chroot_path, tryjob['buildbucket_id']) new_file = '%s.new' % args_output.last_tested with open(new_file, 'w') as update_tryjobs: |