From 2e37d40f841b40b57a3308b4d73f89fbb079b3c4 Mon Sep 17 00:00:00 2001 From: Caleb Connolly Date: Sun, 9 Feb 2025 22:46:38 +0100 Subject: [PATCH] CI: ignore unreferenced tests/ subdir in packages These are used for unit testing Signed-off-by: Caleb Connolly Part-of: https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/6182 --- .ci/testcases/test_source.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.ci/testcases/test_source.py b/.ci/testcases/test_source.py index 366ef153d..e336263bf 100644 --- a/.ci/testcases/test_source.py +++ b/.ci/testcases/test_source.py @@ -105,7 +105,8 @@ def test_aports_unreferenced_files(): if os.path.basename(rel_file_path) not in sources_chk \ and rel_file_path not in apkbuild["install"] \ and rel_file_path not in subpackage_installs \ - and rel_file_path not in trigger_sources: + and rel_file_path not in trigger_sources \ + and not rel_file_path.startswith("tests/"): raise RuntimeError(f"{apkbuild_path}: found unreferenced file: {rel_file_path}")