Skip to content

Commit

Permalink
tests/test_oscillator_fmu.py : Skip test `test_run_osp_system_structu…
Browse files Browse the repository at this point in the history
…re()` on Linux. The HarmonicOscillator.fmu throws an error on Linux (not though on Windows)
  • Loading branch information
ClaasRostock committed Jan 30, 2025
1 parent 2807c02 commit bb29ad2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/test_oscillator_fmu.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import sys
import xml.etree.ElementTree as ET
from collections.abc import Iterable
from math import pi, sin, sqrt
Expand All @@ -20,9 +21,8 @@

from sim_explorer.utils.misc import from_xml
from sim_explorer.utils.osp import make_osp_system_structure

from .data.Oscillator.driving_force_fmu import DrivingForce, func
from .data.Oscillator.oscillator_fmu import HarmonicOscillator
from tests.data.Oscillator.driving_force_fmu import DrivingForce, func
from tests.data.Oscillator.oscillator_fmu import HarmonicOscillator


def check_expected(
Expand Down Expand Up @@ -228,6 +228,7 @@ def test_run_osp(oscillator_fmu: Path, driver_fmu: Path):
_ = sim.simulate_until(target_time=15e9)


@pytest.mark.skipif(sys.platform.startswith("linux"), reason="HarmonicOsciallator.fmu throws an error on Linux")
def test_run_osp_system_structure(system_structure: Path, show: bool):
"Run an OSP simulation in the same way as the SimulatorInterface of case_study is implemented"
log_output_level(CosimLogLevel.TRACE)
Expand Down

0 comments on commit bb29ad2

Please sign in to comment.