From db9b0c995238ced4598c36aed4f2bd62a35f3661 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=85smund=20Birkeland?= Date: Thu, 27 Feb 2020 12:25:15 +0100 Subject: [PATCH] Remove ecl version when writing jobs.json --- lib/job_queue/forward_model.cpp | 5 ----- .../res/job_queue/test_forward_model_formatted_print.py | 4 ---- 2 files changed, 9 deletions(-) diff --git a/lib/job_queue/forward_model.cpp b/lib/job_queue/forward_model.cpp index 2cce8a2d56..43369b9cbf 100644 --- a/lib/job_queue/forward_model.cpp +++ b/lib/job_queue/forward_model.cpp @@ -199,11 +199,6 @@ static void forward_model_json_fprintf(const forward_model_type * forward_model, } fprintf(stream, "],\n"); - fprintf(stream, "\n\"ert_version\" : [%d, %d, \"%s\"],\n", - ecl_version_get_major_version(), - ecl_version_get_minor_version(), - ecl_version_get_micro_version()); - fprintf(stream, "\"run_id\" : \"%s\",\n", run_id); fprintf(stream, "\"ert_pid\" : \"%ld\"\n", (long)getpid()); //Long is big enough to hold __pid_t fprintf(stream, "}\n"); diff --git a/python/tests/res/job_queue/test_forward_model_formatted_print.py b/python/tests/res/job_queue/test_forward_model_formatted_print.py index 02bd33efec..795c477628 100644 --- a/python/tests/res/job_queue/test_forward_model_formatted_print.py +++ b/python/tests/res/job_queue/test_forward_model_formatted_print.py @@ -332,10 +332,6 @@ def verify_json_dump(self, selected_jobs, global_args, umask, run_id): self.assertEqual(umask, int(config["umask"], 8)) self.assertEqual(len(selected_jobs), len(config["jobList"])) - ert_version = config["ert_version"] - loaded_version = Version(ert_version[0], ert_version[1], ert_version[2]) - self.assertEqual(EclVersion(), loaded_version) - for i in range(len(selected_jobs)): job = joblist[selected_jobs[i]] loaded_job = config["jobList"][i]