aboutsummaryrefslogtreecommitdiff
path: root/llvm_tools/bisect_clang_crashes.py
diff options
context:
space:
mode:
authorGeorge Burgess IV <gbiv@google.com>2020-10-08 11:18:36 -0700
committerGeorge Burgess <gbiv@chromium.org>2020-10-08 18:45:52 +0000
commit7624e2dace1eddb857ba092d4db07ade86891165 (patch)
tree11751db9a67a4030b45928ec69dd11979a9444dc /llvm_tools/bisect_clang_crashes.py
parent44e5787e5c98615899e512462491089e5c4dfb00 (diff)
downloadtoolchain-utils-7624e2dace1eddb857ba092d4db07ade86891165.tar.gz
llvm_tools: use gsutil.py instead of gsutil
chrotomation.mtv has gsutil.py from depot_tools, and no pre-installed gsutil. seems easiest to just add another dependency on gsutil.py. BUG=None TEST=Ran on chrotomation Change-Id: I9833c0fb1e11d31b3a4c17375e0f296ff5a83a8e Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/2462043 Reviewed-by: Manoj Gupta <manojgupta@chromium.org> Tested-by: George Burgess <gbiv@chromium.org>
Diffstat (limited to 'llvm_tools/bisect_clang_crashes.py')
-rwxr-xr-xllvm_tools/bisect_clang_crashes.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm_tools/bisect_clang_crashes.py b/llvm_tools/bisect_clang_crashes.py
index 4d47c4c3..e8ee2ab6 100755
--- a/llvm_tools/bisect_clang_crashes.py
+++ b/llvm_tools/bisect_clang_crashes.py
@@ -23,7 +23,7 @@ import chroot
def get_artifacts(pattern):
- results = subprocess.check_output(['gsutil', 'ls', pattern],
+ results = subprocess.check_output(['gsutil.py', 'ls', pattern],
stderr=subprocess.STDOUT,
encoding='utf-8')
return sorted(l.strip() for l in results.splitlines())
@@ -48,7 +48,7 @@ def submit_crash_to_forcey(forcey: str, temporary_directory: str,
dest_dir = os.path.join(temporary_directory, buildbucket_id)
dest_file = os.path.join(dest_dir, os.path.basename(url))
logging.info('Downloading and submitting %r...', url)
- subprocess.check_output(['gsutil', 'cp', url, dest_file],
+ subprocess.check_output(['gsutil.py', 'cp', url, dest_file],
stderr=subprocess.STDOUT)
subprocess.check_output(['tar', '-xJf', dest_file], cwd=dest_dir)
for src, script in get_crash_reproducers(dest_dir):