Skip to content

Commit dc12f2e

Browse files
committed
test: improve error msg on previous release tarball extraction failure
1 parent 7121fd8 commit dc12f2e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/get_previous_releases.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,8 @@ def download_binary(tag, args) -> int:
148148
ret = subprocess.run(['tar', '-zxf', tarball, '-C', tag,
149149
'--strip-components=1',
150150
'bitcoin-{tag}'.format(tag=tag[1:])]).returncode
151-
if ret:
151+
if ret != 0:
152+
print(f"Failed to extract the {tag} tarball")
152153
return ret
153154

154155
Path(tarball).unlink()

0 commit comments

Comments
 (0)