mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-04-08 03:59:18 +02:00
test: improve error msg on previous release tarball extraction failure
This commit is contained in:
parent
7121fd8fa7
commit
dc12f2e212
@ -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…
x
Reference in New Issue
Block a user