check a suite definition without loading it into the ecflow_server:
Step-by-step guide
If the suite definition is in a text file::
...
Code Block | ||||
---|---|---|---|---|
| ||||
ecflow_client --load=test.def check_only |
...
Load the test.def into python and check
Code Block | ||||
---|---|---|---|---|
| ||||
import ecflow
defs = |
...
ecflow.Defs("test.def") |
...
theCheckValue = defs.check(); |
...
assert len(theCheckValue) != |
...
0, "Error in expression,limits,etc," + theCheckValue |
If the suite definition is built using python
...
API.
...
Code Block | ||||
---|---|---|---|---|
| ||||
import ecflow
defs = ecflow |
...
.Defs() |
...
suite = |
...
defs.add_suite("s1"); |
...
suite.add_task("t1").add_trigger("t2 == active)") |
...
# missing bracket theCheckValue = |
...
defs.check(); |
...
...
("Message: |
...
",theCheckValue) assert len(theCheckValue) != |
...
0, "Expected Error: mis-matched brackets in expression." |
...
Related articles
Content by Label | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...
hidden | true |
---|
...