From d46827ce4a0469f40d56d2f5e48047c91a0db210 Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Tue, 25 Nov 2025 12:51:20 +0100 Subject: [PATCH] tests: Don't try to build QNX tests if the target platform doesn't match Allows building the module on an AutoSD system. --- tests/integration_test_scenarios/BUILD | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/integration_test_scenarios/BUILD b/tests/integration_test_scenarios/BUILD index 48b7fc5d..79bb07c3 100644 --- a/tests/integration_test_scenarios/BUILD +++ b/tests/integration_test_scenarios/BUILD @@ -100,6 +100,11 @@ qnx_ifs( ":is_qnx_aarch64": ["install"], # relative to the .build file’s dir "//conditions:default": [], }), + target_compatible_with = select({ + ":is_qnx_aarch64": [], + ":is_qnx_x86_64": [], + "//conditions:default": ["@platforms//:incompatible"], + }), ) sh_binary( @@ -118,4 +123,9 @@ sh_binary( "@toolchains_qnx_sdp//:host_all", "@toolchains_qnx_sdp//:host_dir", ], + target_compatible_with = select({ + ":is_qnx_aarch64": [], + ":is_qnx_x86_64": [], + "//conditions:default": ["@platforms//:incompatible"], + }), )