From fcd6ac97ed0c26b36dbf18a1ee8ecb5f6b41707e Mon Sep 17 00:00:00 2001 From: rasmith Date: Wed, 18 Feb 2026 14:00:40 -0600 Subject: [PATCH] [CI][AMD][BugFix] Skip tests in test_unquantized_backend_selection that should not run on ROCm (#34655) Signed-off-by: Randall Smith --- tests/kernels/moe/test_unquantized_backend_selection.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/kernels/moe/test_unquantized_backend_selection.py b/tests/kernels/moe/test_unquantized_backend_selection.py index fcb79ee8f2..bf5a547fe3 100644 --- a/tests/kernels/moe/test_unquantized_backend_selection.py +++ b/tests/kernels/moe/test_unquantized_backend_selection.py @@ -9,6 +9,7 @@ from vllm.model_executor.layers.fused_moe.oracle.unquantized import ( UnquantizedMoeBackend, select_unquantized_moe_backend, ) +from vllm.platforms import current_platform @pytest.mark.parametrize( @@ -65,6 +66,9 @@ def test_select_default_backend_by_platform( "vllm.model_executor.layers.fused_moe.oracle.unquantized.is_supported_config_trtllm_bf16", return_value=(True, None), ) +@pytest.mark.skipif( + not current_platform.is_cuda(), reason="Only supported on NVIDIA platforms." +) def test_select_cuda_flashinfer_trtllm_backend( mock_has_flashinfer, mock_is_supported_trtllm, monkeypatch ): @@ -101,6 +105,9 @@ def test_select_cuda_flashinfer_trtllm_backend( "vllm.model_executor.layers.fused_moe.oracle.unquantized.is_supported_config_trtllm_bf16", return_value=(False, None), ) +@pytest.mark.skipif( + not current_platform.is_cuda(), reason="Only supported on NVIDIA platforms." +) def test_select_cuda_flashinfer_cutlass_backend( mock_has_flashinfer, mock_is_supported_trtllm, monkeypatch ):