From 3b9120c9945883afa40b6bb064689504e5ae6ba8 Mon Sep 17 00:00:00 2001 From: Orsiris de Jong Date: Tue, 3 Dec 2024 21:53:53 +0100 Subject: [PATCH] tests: Make downloaded backend binary executable --- tests/test_npbackup-cli.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/test_npbackup-cli.py b/tests/test_npbackup-cli.py index 3b77e02..655dba6 100644 --- a/tests/test_npbackup-cli.py +++ b/tests/test_npbackup-cli.py @@ -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)