diff --git a/test-data/poly_example/ASSERT_RUNPATH_FILE b/test-data/poly_example/ASSERT_RUNPATH_FILE deleted file mode 100644 index df93bdd6839..00000000000 --- a/test-data/poly_example/ASSERT_RUNPATH_FILE +++ /dev/null @@ -1,2 +0,0 @@ -INTERNAL FALSE -EXECUTABLE assert_runpath_file.py diff --git a/test-data/poly_example/TEST_RUNPATH_FILE b/test-data/poly_example/TEST_RUNPATH_FILE deleted file mode 100644 index 2c8cb93f82e..00000000000 --- a/test-data/poly_example/TEST_RUNPATH_FILE +++ /dev/null @@ -1 +0,0 @@ -ASSERT_RUNPATH_FILE diff --git a/test-data/poly_example/assert_runpath_file.py b/test-data/poly_example/assert_runpath_file.py deleted file mode 100755 index ca1095577e9..00000000000 --- a/test-data/poly_example/assert_runpath_file.py +++ /dev/null @@ -1,34 +0,0 @@ -#!/usr/bin/env python -import os -import sys - - -def run(): - runpath_file = sys.argv[1] - iteration = 0 - - ok_filename = "RUNPATH_WORKFLOW_{}.OK" - if os.path.isfile(ok_filename.format(0)): - iteration = 1 - - curdir = sys.argv[2] - runpath_line = ( - "{iens:03d} " - "{pwd}/poly_out/realization-{iens}/iter-{iter} " - "poly_{iens} {iter:03d}\n" - ) - with open(runpath_file, encoding="utf-8") as fh: - rpf = "".join( - [ - runpath_line.format(iens=iens, iter=iteration, pwd=curdir) - for iens in [1, 2, 4, 8, 16, 32, 64] - ] - ) - assert fh.read() == rpf - - with open(ok_filename.format(iteration), "w", encoding="utf-8") as fh: - fh.write(":)") - - -if __name__ == "__main__": - run() diff --git a/test-data/poly_template/TEST_RUNPATH_FILE b/test-data/poly_template/TEST_RUNPATH_FILE deleted file mode 100644 index 2c8cb93f82e..00000000000 --- a/test-data/poly_template/TEST_RUNPATH_FILE +++ /dev/null @@ -1 +0,0 @@ -ASSERT_RUNPATH_FILE diff --git a/tests/integration_tests/cli/test_integration_cli.py b/tests/integration_tests/cli/test_integration_cli.py index 982a672ac40..4394d40a4f7 100644 --- a/tests/integration_tests/cli/test_integration_cli.py +++ b/tests/integration_tests/cli/test_integration_cli.py @@ -41,43 +41,6 @@ def fixture_mock_cli_run(monkeypatch): yield mocked_monitor, mocked_thread_join, mocked_thread_start -@pytest.mark.scheduler -@pytest.mark.integration_test -def test_runpath_file(tmpdir, source_root, try_queue_and_scheduler, monkeypatch): - shutil.copytree( - os.path.join(source_root, "test-data", "poly_example"), - os.path.join(str(tmpdir), "poly_example"), - ) - - with tmpdir.as_cwd(): - with open("poly_example/poly.ert", "a", encoding="utf-8") as fh: - config_lines = [ - "LOAD_WORKFLOW_JOB ASSERT_RUNPATH_FILE\n" - "LOAD_WORKFLOW TEST_RUNPATH_FILE\n", - "HOOK_WORKFLOW TEST_RUNPATH_FILE PRE_SIMULATION\n", - ] - - fh.writelines(config_lines) - - parser = ArgumentParser(prog="test_main") - parsed = ert_parser( - parser, - [ - ENSEMBLE_SMOOTHER_MODE, - "--target-case", - "poly_runpath_file", - "--realizations", - "1,2,4,8,16,32,64", - "poly_example/poly.ert", - ], - ) - - run_cli(parsed) - - assert os.path.isfile("RUNPATH_WORKFLOW_0.OK") - assert os.path.isfile("RUNPATH_WORKFLOW_1.OK") - - @pytest.mark.scheduler @pytest.mark.integration_test def test_ensemble_evaluator(tmpdir, source_root, try_queue_and_scheduler, monkeypatch):