-
Created by Unknown User (usa), last modified by Unknown User (ma0) on Sept 18, 2019
You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 8
Next »
Step-by-step guide
If the suite definition is in a text file::
$ ecflow_client --load=test.def check_only
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.
import ecflow
defs = ecflow.Defs()
suite = defs.add_suite( "s1" );
suite.add_task( "t1" ).add_trigger( "t2 == active)" ) # missing bracket
theCheckValue = defs.check();
print "Message: '" + theCheckValue + "'"
assert len (theCheckValue) ! = 0 , "Expected Error: mis-matched brackets in expression."
|
Related articles