From d304e6790de32eaf725c0de9c16c6cdfa8adc7c7 Mon Sep 17 00:00:00 2001 From: larsevj Date: Wed, 30 Oct 2024 17:23:20 +0100 Subject: [PATCH] Set max running to 12 in tests --- tests/conftest.py | 9 ++++++++- .../ui_tests/cli/analysis/test_adaptive_localization.py | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/tests/conftest.py b/tests/conftest.py index c9b5742ce62..4d258d19f4e 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -187,16 +187,22 @@ def _copy_case(path): @pytest.fixture() def copy_poly_case(copy_case): copy_case("poly_example") + with open("poly.ert", "a", encoding="utf-8") as fh: + fh.write("QUEUE_OPTION LOCAL MAX_RUNNING 12\n") @pytest.fixture() def copy_snake_oil_field(copy_case): copy_case("snake_oil_field") + with open("snake_oil_field.ert", "a", encoding="utf-8") as fh: + fh.write("QUEUE_OPTION LOCAL MAX_RUNNING 12\n") @pytest.fixture() def copy_snake_oil_case(copy_case): copy_case("snake_oil") + with open("snake_oil.ert", "a", encoding="utf-8") as fh: + fh.write("QUEUE_OPTION LOCAL MAX_RUNNING 12\n") @pytest.fixture( @@ -374,7 +380,8 @@ def _run_heat_equation(source_root): os.path.join(source_root, "test-data", "heat_equation"), "test_data" ) os.chdir("test_data") - + with open("config.ert", "a", encoding="utf-8") as fh: + fh.write("QUEUE_OPTION LOCAL MAX_RUNNING 12\n") parser = ArgumentParser(prog="test_main") parsed = ert_parser( parser, diff --git a/tests/ui_tests/cli/analysis/test_adaptive_localization.py b/tests/ui_tests/cli/analysis/test_adaptive_localization.py index 1f0537eb7f4..bb47acc36b8 100644 --- a/tests/ui_tests/cli/analysis/test_adaptive_localization.py +++ b/tests/ui_tests/cli/analysis/test_adaptive_localization.py @@ -155,7 +155,7 @@ def _evaluate(coeffs, x): f.write( """ QUEUE_SYSTEM LOCAL -QUEUE_OPTION LOCAL MAX_RUNNING 50 +QUEUE_OPTION LOCAL MAX_RUNNING 12 RUNPATH poly_out/realization-/iter-