From fc9c3c1fef19d51131c25eb4a2a32bdf3a49e541 Mon Sep 17 00:00:00 2001 From: Stefan Hansson Date: Sun, 25 Feb 2024 12:33:47 +0100 Subject: [PATCH] CI: don't check for executable files in temp (MR 4858) Most things in temp come from Alpine's aports repository, which has different rules and does not for example mandate that files are not marked as executable. As such, let's not require packages in there to conform to our rules. [ci:skip-build]: already built successfully in CI --- .ci/testcases/test_directory_structure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ci/testcases/test_directory_structure.py b/.ci/testcases/test_directory_structure.py index 32e8a4a94..822d9fb44 100644 --- a/.ci/testcases/test_directory_structure.py +++ b/.ci/testcases/test_directory_structure.py @@ -30,7 +30,7 @@ def test_directories(): # Ensure no file in pmaports are executable. # see https://gitlab.com/postmarketOS/pmaports/-/issues/593. def test_executable_files(): - for file in glob.iglob("**/*", recursive=True): + for file in glob.iglob("[!temp]**/**/*", recursive=True): if os.path.isdir(file) or os.path.islink(file): continue # still check other less common inode types