Commit 404fe331 authored by Antoine Berchet's avatar Antoine Berchet
Browse files

Allow test to be run on LSCE platform (useful for compiling CHIMERE)

parent f343e9ff
......@@ -6,6 +6,8 @@ dirout=/home/chimereicos/aberchet/debugchimere/pytest/
###
# Path for the input data: must be available from where the script is launched
export PYCIF_DATATEST=/home/chimereges/PYCIF_TEST_DATA/
# Set up the platform to be run at LSCE, otherwise, use default docker parameters
export PYCIF_PLATFORM=LSCE
###
# select a subset of tests to run by using the tags ("mark")
#mark="(dummy and article and inversion and not adjtltest and not uncertainties) or (fwd and ref_config)"
......
......@@ -34,8 +34,11 @@ def ref_chimere(tmpdir):
"autorestart": True,
},
"platform": {
"plugin": {"name": "docker", "version": "cif"},
# "plugin": {"name": "LSCE", "version": "obelix"},
"plugin":
{"name": "LSCE", "version": "obelix"}
if os.getenv("PYCIF_PLATFORM") == "LSCE"
else {"name": "docker", "version": "cif"}
,
"cores": 10,
"queue": "mediump"
},
......
......@@ -89,7 +89,12 @@ def test_integration_inversion(dummy_config_inversion, settings, pytestconfig):
posterior_dir = os.path.join(tmpdir, "obsvect_posterior")
config["mode"] = mode
config["platform"] = {"plugin": {"name": "docker", "version": "cif"}}
config["platform"] = {
"plugin":
{"name": "LSCE", "version": "obelix"}
if os.getenv("PYCIF_PLATFORM") == "LSCE"
else {"name": "docker", "version": "cif"}
}
# Save ID for later plot of cost function
resolution = \
......
......@@ -34,8 +34,10 @@ def ref_flexpart(tmpdir):
"autorestart": True,
},
"platform": {
"plugin": {"name": "docker", "version": "cif"},
# "plugin": {"name": "LSCE", "version": "obelix"},
"plugin":
{"name": "LSCE", "version": "obelix"}
if os.getenv("PYCIF_PLATFORM") == "LSCE"
else {"name": "docker", "version": "cif"},
"cores": 10,
"queue": "mediump"
},
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment