mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-29 14:59:39 -04:00
test: improve error msg on previous release tarball extraction failure
This commit is contained in:
parent
7121fd8fa7
commit
dc12f2e212
1 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Reference in a new issue