diff --git a/engine/e2e-test/test_cli_engine_get.py b/engine/e2e-test/test_cli_engine_get.py index c26bedfae..1eb32388c 100644 --- a/engine/e2e-test/test_cli_engine_get.py +++ b/engine/e2e-test/test_cli_engine_get.py @@ -18,7 +18,7 @@ def setup_and_teardown(self): # Teardown stop_server() - @pytest.mark.skipif(platform.system() != "Windows", reason="Windows-specific test") + @pytest.mark.skipif(reason="Ignore tensorrt-llm test") def test_engines_get_tensorrt_llm_should_not_be_incompatible(self): exit_code, output, error = run("Get engine", ["engines", "get", "tensorrt-llm"]) assert exit_code == 0, f"Get engine failed with error: {error}" @@ -26,7 +26,7 @@ def test_engines_get_tensorrt_llm_should_not_be_incompatible(self): "Incompatible" not in output ), "tensorrt-llm should be Ready or Not Installed on Windows" - @pytest.mark.skipif(platform.system() != "Windows", reason="Windows-specific test") + @pytest.mark.skipif(reason="Ignore onnx-runtime test") def test_engines_get_onnx_should_not_be_incompatible(self): exit_code, output, error = run("Get engine", ["engines", "get", "onnxruntime"]) assert exit_code == 0, f"Get engine failed with error: {error}" @@ -41,7 +41,7 @@ def test_engines_get_llamacpp_should_not_be_incompatible(self): "Incompatible" not in output ), "llama-cpp should be compatible for Windows, MacOs and Linux" - @pytest.mark.skipif(platform.system() != "Darwin", reason="macOS-specific test") + @pytest.mark.skipif(reason="Ignore tensorrt-llm test") def test_engines_get_tensorrt_llm_should_be_incompatible_on_macos(self): exit_code, output, error = run("Get engine", ["engines", "get", "tensorrt-llm"]) assert exit_code == 0, f"Get engine failed with error: {error}" @@ -49,7 +49,7 @@ def test_engines_get_tensorrt_llm_should_be_incompatible_on_macos(self): "is not supported on" in output ), "tensorrt-llm should be Incompatible on MacOS" - @pytest.mark.skipif(platform.system() != "Darwin", reason="macOS-specific test") + @pytest.mark.skipif(reason="Ignore onnx-runtime test") def test_engines_get_onnx_should_be_incompatible_on_macos(self): exit_code, output, error = run("Get engine", ["engines", "get", "onnxruntime"]) assert exit_code == 0, f"Get engine failed with error: {error}" @@ -57,7 +57,7 @@ def test_engines_get_onnx_should_be_incompatible_on_macos(self): "is not supported on" in output ), "onnxruntime should be Incompatible on MacOS" - @pytest.mark.skipif(platform.system() != "Linux", reason="Linux-specific test") + @pytest.mark.skipif(reason="Ignore onnx-runtime test") def test_engines_get_onnx_should_be_incompatible_on_linux(self): exit_code, output, error = run("Get engine", ["engines", "get", "onnxruntime"]) print(output) diff --git a/engine/e2e-test/test_cli_engine_install_nightly.py b/engine/e2e-test/test_cli_engine_install_nightly.py index bbb56ac9b..80490ab55 100644 --- a/engine/e2e-test/test_cli_engine_install_nightly.py +++ b/engine/e2e-test/test_cli_engine_install_nightly.py @@ -31,7 +31,7 @@ def test_engines_install_llamacpp_should_be_successfully(self): assert len(response.json()) > 0 assert exit_code == 0, f"Install engine failed with error: {error}" - @pytest.mark.skipif(platform.system() != "Darwin", reason="macOS-specific test") + @pytest.mark.skipif(reason="Ignore onnx-runtime test") def test_engines_install_onnx_on_macos_should_be_failed(self): exit_code, output, error = run( "Install Engine", ["engines", "install", "onnxruntime"] @@ -39,7 +39,7 @@ def test_engines_install_onnx_on_macos_should_be_failed(self): assert "is not supported on" in output, "Should display error message" assert exit_code == 0, f"Install engine failed with error: {error}" - @pytest.mark.skipif(platform.system() != "Darwin", reason="macOS-specific test") + @pytest.mark.skipif(reason="Ignore tensorrt-llm test") def test_engines_install_onnx_on_tensorrt_should_be_failed(self): exit_code, output, error = run( "Install Engine", ["engines", "install", "tensorrt-llm"]