Skip to content

Commit

Permalink
Fix a small bug in fetch_kokoro_prebuilts script
Browse files Browse the repository at this point in the history
Extract the toolchain only when the build is a successful build.

Test: ./fetch-kokoro-prebuilts [build_id] [target]
Bug: b/326833691
Change-Id: I965d470d47cf79465809181f1c6c77b0f806e88d
  • Loading branch information
ZijunZhaoCCK committed May 2, 2024
1 parent 22cf9a3 commit 5e57e31
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fetch_kokoro_prebuilts.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ def fetch_prebuilts(build_id: str, target: str):
else:
print("Download successful!")

# extract the toolchain
tar = os.path.abspath(td) + "/" + os.listdir(td)[0]
extract_tarball(target, tar)
# extract the toolchain
tar = os.path.abspath(td) + "/" + os.listdir(td)[0]
extract_tarball(target, tar)


# Make sure gsutil is installed.
Expand Down

0 comments on commit 5e57e31

Please sign in to comment.