Skip to content

Commit

Permalink
test: improve error msg on previous release tarball extraction failure
Browse files Browse the repository at this point in the history
  • Loading branch information
kdmukai committed Dec 19, 2022
1 parent 7121fd8 commit dc12f2e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/get_previous_releases.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ def download_binary(tag, args) -> int:
ret = subprocess.run(['tar', '-zxf', tarball, '-C', tag,
'--strip-components=1',
'bitcoin-{tag}'.format(tag=tag[1:])]).returncode
if ret:
if ret != 0:
print(f"Failed to extract the {tag} tarball")
return ret

Path(tarball).unlink()
Expand Down

0 comments on commit dc12f2e

Please sign in to comment.