From fad270918d4dea0ae612dfaf683e567a098d651a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20M=C3=BCller?= Date: Tue, 9 Aug 2022 10:23:34 -0700 Subject: [PATCH] Use deny/allow lists from upstream MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit So far we have relied on allow/deny lists maintained in this repository to decide which tests to explicitly include/exclude from running in CI. With recent changes [0] this information is now available in upstream Linux. As such, this change switches us over to using the upstream allow/deny lists in addition to the local ones. We unconditionally honor the upstream lists for all kernel versions. [0] https://lore.kernel.org/bpf/165893461358.29339.11641967418379627671.git-patchwork-notify@kernel.org/T/#m2a97b0ea9ef0ddee7a53bbf7919e3f324b233937 Signed-off-by: Daniel Müller --- ci/vmtest/run_selftests.sh | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/ci/vmtest/run_selftests.sh b/ci/vmtest/run_selftests.sh index 071b19d..1097141 100755 --- a/ci/vmtest/run_selftests.sh +++ b/ci/vmtest/run_selftests.sh @@ -55,9 +55,20 @@ test_verifier() { foldable end vm_init -configs_path=${PROJECT_NAME}/vmtest/configs -DENYLIST=$(read_lists "$configs_path/DENYLIST-${KERNEL}" "$configs_path/DENYLIST-${KERNEL}.${ARCH}") -ALLOWLIST=$(read_lists "$configs_path/ALLOWLIST-${KERNEL}" "$configs_path/ALLOWLIST-${KERNEL}.${ARCH}") +configs_path=/${PROJECT_NAME}/selftests/bpf +local_configs_path=${PROJECT_NAME}/vmtest/configs +DENYLIST=$(read_lists \ + "$configs_path/DENYLIST" \ + "$configs_path/DENYLIST.${ARCH}" \ + "$local_configs_path/DENYLIST-${KERNEL}" \ + "$local_configs_path/DENYLIST-${KERNEL}.${ARCH}" \ +) +ALLOWLIST=$(read_lists \ + "$configs_path/ALLOWLIST" \ + "$configs_path/ALLOWLIST.${ARCH}" \ + "$local_configs_path/ALLOWLIST-${KERNEL}" \ + "$local_configs_path/ALLOWLIST-${KERNEL}.${ARCH}" \ +) echo "DENYLIST: ${DENYLIST}" echo "ALLOWLIST: ${ALLOWLIST}"