From 225b577ccd9c0725158824c3ff697a5b3d798f40 Mon Sep 17 00:00:00 2001 From: rdb Date: Fri, 13 Oct 2023 10:55:17 +0200 Subject: [PATCH] tests: Skip Cg tests on arm64 machines --- tests/display/test_cg_shader.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/display/test_cg_shader.py b/tests/display/test_cg_shader.py index 8a6c4d7a74..2597b39971 100644 --- a/tests/display/test_cg_shader.py +++ b/tests/display/test_cg_shader.py @@ -1,4 +1,6 @@ import os +import platform +import pytest from panda3d import core @@ -16,12 +18,14 @@ def run_cg_compile_check(gsg, shader_path, expect_fail=False): assert shader is not None +@pytest.mark.skipif(platform.machine().lower() == 'arm64', reason="Cg not supported on arm64") def test_cg_compile_error(gsg): """Test getting compile errors from bad Cg shaders""" shader_path = core.Filename(SHADERS_DIR, 'cg_bad.sha') run_cg_compile_check(gsg, shader_path, expect_fail=True) +@pytest.mark.skipif(platform.machine().lower() == 'arm64', reason="Cg not supported on arm64") def test_cg_from_file(gsg): """Test compiling Cg shaders from files""" shader_path = core.Filename(SHADERS_DIR, 'cg_simple.sha')