test: improve error msg on previous release tarball extraction failure

This commit is contained in:
kdmukai 2022-12-19 11:25:33 -06:00
parent 7121fd8fa7
commit dc12f2e212

View File

@ -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()