Set executable file permissions for qmake

This commit is contained in:
Dave Dalcino
2022-12-04 09:26:51 -08:00
parent 313321217d
commit 18c8259e8c
2 changed files with 7 additions and 3 deletions

View File

@@ -1001,6 +1001,8 @@ def test_install(
for patched_file in archive.contents:
file_path = installed_path / patched_file.filename
assert file_path.is_file()
if file_path.name == "qmake":
assert os.access(file_path, os.X_OK), "qmake file must be executable"
expect_content = patched_file.expected_content(base_dir=output_dir, sep=os.sep)
actual_content = file_path.read_text(encoding="utf_8")