diff --git a/tests/test_ri_wellmod.py b/tests/test_ri_wellmod.py index 27d2d3b4d..7eb5e387c 100644 --- a/tests/test_ri_wellmod.py +++ b/tests/test_ri_wellmod.py @@ -5,11 +5,9 @@ import pytest from subscript.ri_wellmod import ri_wellmod -pytestmark = pytest.mark.xfail() - SCRIPTNAME = "ri_wellmod" DATAPATH = Path(__file__).parent / "testdata_ri_wellmod" -RI_DEV = "/project/res/x86_64_RH_7/share/resinsight/jenkins_dev/ResInsight" +RI_DEV = "/project/res/bin/resinsightdev" try: # pylint: disable=unused-import @@ -62,6 +60,10 @@ def file_contains(filename, string_to_find): return filetext.find(string_to_find) >= 0 +def github_runner(): + return os.getenv("GITHUB_ACTIONS") == "true" + + @pytest.mark.integration def test_integration(): """Test that endpoint is installed""" @@ -85,6 +87,7 @@ def test_main_initcase(tmp_path, mocker): assert Path(outfile).exists() and file_contains(outfile, "A4") +@pytest.mark.skipif(github_runner(), reason="Cannot run test on github runner") @pytest.mark.skipif( not has_resinsight(), reason="Could not find a ResInsight executable", @@ -232,6 +235,7 @@ def test_ert_forward_model(tmp_path): # REEK TESTS +@pytest.mark.skipif(github_runner(), reason="Cannot run test on github runner") @pytest.mark.skipif( not has_resinsight(), reason="Could not find a ResInsight executable" ) @@ -248,6 +252,7 @@ def test_main_initcase_reek(tmp_path, mocker): assert Path(outfile).exists() and file_contains(outfile, "OP_1") +@pytest.mark.skipif(github_runner(), reason="Cannot run test on github runner") @pytest.mark.skipif( not has_resinsight(), reason="Could not find a ResInsight executable" )