mirror of
https://github.com/netinvent/npbackup.git
synced 2025-10-09 21:17:47 +08:00
tests: Make downloaded backend binary executable
This commit is contained in:
parent
388be581e4
commit
3b9120c994
1 changed files with 2 additions and 0 deletions
|
@ -102,6 +102,8 @@ def test_download_restic_binaries():
|
|||
with open(full_path.with_suffix(""), "wb") as fp:
|
||||
fp.write(bz2.decompress(file_request.content)
|
||||
)
|
||||
# We also need to make that file executable
|
||||
os.chmod(full_path.with_suffix(""), 0o775)
|
||||
else:
|
||||
with open(full_path, "wb") as fp:
|
||||
fp.write(file_request.content)
|
||||
|
|
Loading…
Add table
Reference in a new issue