diff --git a/src/test/java/com/google/devtools/build/lib/analysis/StarlarkExecGroupTest.java b/src/test/java/com/google/devtools/build/lib/analysis/StarlarkExecGroupTest.java index ab547c7ec22dee..8bff7bf0342e54 100644 --- a/src/test/java/com/google/devtools/build/lib/analysis/StarlarkExecGroupTest.java +++ b/src/test/java/com/google/devtools/build/lib/analysis/StarlarkExecGroupTest.java @@ -806,21 +806,24 @@ def _impl(ctx): my_cc_test( name = "my_test", + exec_compatible_with = [ + "//platform:has_fast_cpu", + ], exec_group_compatible_with = { - "cpp_link": ["//platform:has_fast_cpu"], "test": ["//platform:has_gpu"], }, ) """); useConfiguration( - "--platforms=//platform:default_platform", "--extra_execution_platforms=//platform:all"); + "--platforms=//platform:default_platform", + "--extra_execution_platforms=//platform:fast_cpu_platform,//platform:gpu_platform"); ConfiguredTarget target = getConfiguredTarget("//test:my_test"); - assertThat(getGeneratingAction(target, "test/my_test.o").getExecProperties()).containsExactly(); - assertThat(getGeneratingAction(target, "test/my_test").getExecProperties()) + assertThat(getGeneratingAction(target, "test/my_test.o").getExecProperties()) .containsExactly("require_fast_cpu", "true"); + assertThat(getGeneratingAction(target, "test/my_test").getExecProperties()).containsExactly(); Action testAction = getActions("//test:my_test").stream() .filter(action -> action.getMnemonic().equals("TestRunner"))