From 83bd85ff254d07afaab38872dba6dc90e1cc1298 Mon Sep 17 00:00:00 2001 From: Tobias Hienzsch Date: Sun, 1 Sep 2024 17:19:12 +0200 Subject: [PATCH] Disable linux native engine tests. Time-out on runners --- .github/workflows/build.yml | 2 +- src/python/test/test_sim3d.py | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3286223..5937ebe 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -32,7 +32,7 @@ jobs: cmake_flags: "" cxx_flags: "" python_version: "3.12" - pffdtd_engine: "build/src/cpp/main_3d/pffdtd_3d" + pffdtd_engine: "" - name: macOS-X64 os: macos-13 diff --git a/src/python/test/test_sim3d.py b/src/python/test/test_sim3d.py index 244eb04..3d1c39e 100644 --- a/src/python/test/test_sim3d.py +++ b/src/python/test/test_sim3d.py @@ -46,16 +46,16 @@ def _skip_if_native_engine_unavailable(engine): pytest.skip("Native engine not available") -def _skip_if_not_enough_memory(engine): - if engine == "python": - if psutil.virtual_memory().available <= 6e9: - pytest.skip("Not enough memory") +# def _skip_if_not_enough_memory(engine): +# if engine == "python": +# if psutil.virtual_memory().available <= 6e9: +# pytest.skip("Not enough memory") @pytest.mark.parametrize("engine", ["python", "native"]) def test_sim3d_locate_sound_source(tmp_path, engine): _skip_if_native_engine_unavailable(engine) - _skip_if_not_enough_memory(engine) + # _skip_if_not_enough_memory(engine) fmin = 20 fmax = 1000 @@ -154,7 +154,7 @@ def test_sim3d_locate_sound_source(tmp_path, engine): @pytest.mark.parametrize("engine", ["python", "native"]) def test_sim3d_infinite_baffle(tmp_path, engine): _skip_if_native_engine_unavailable(engine) - _skip_if_not_enough_memory(engine) + # _skip_if_not_enough_memory(engine) fmin = 20 fmax = 1000 @@ -265,7 +265,7 @@ def test_sim3d_infinite_baffle(tmp_path, engine): ) def test_sim3d_detect_room_modes(tmp_path, engine, room, fmax, ppw, fcc, dx_scale, tolerance): _skip_if_native_engine_unavailable(engine) - _skip_if_not_enough_memory(engine) + # _skip_if_not_enough_memory(engine) L = room[0] W = room[1]