Skip to content

Commit

Permalink
Set max running to 12 in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
larsevj authored and sondreso committed Nov 1, 2024
1 parent dd35db4 commit d304e67
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion tests/ui_tests/cli/analysis/test_adaptive_localization.py
Original file line number Diff line number Diff line change
Expand Up @@ -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-<IENS>/iter-<ITER>
Expand Down

0 comments on commit d304e67

Please sign in to comment.