File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,8 @@ def __init__(self,
55
55
56
56
def make (self , cwl ):
57
57
"""Instantiate a CWL object from a CWl document."""
58
- load = load_tool .load_tool (cwl , self .makeTool )
58
+ load = load_tool .load_tool (cwl , self .makeTool ,
59
+ strict = self .execkwargs .get ("strict" , True ))
59
60
if isinstance (load , int ):
60
61
raise Exception ("Error loading tool" )
61
62
return Callable (load , self )
Original file line number Diff line number Diff line change @@ -556,6 +556,13 @@ def test_checker(self):
556
556
f = cwltool .factory .Factory ()
557
557
f .make ("tests/checker_wf/broken-wf2.cwl" )
558
558
559
+ def test_var_spool_cwl_checker (self ):
560
+ """ Confirm that references to /var/spool/cwl are caught."""
561
+ with self .assertRaises (schema_salad .validate .ValidationException ):
562
+ f = cwltool .factory .Factory ()
563
+ f .make ("tests/non_portable.cwl" )
564
+ f = cwltool .factory .Factory (strict = False )
565
+ f .make ("tests/non_portable.cwl" )
559
566
560
567
class TestPrintDot (unittest .TestCase ):
561
568
def test_print_dot (self ):
You can’t perform that action at this time.
0 commit comments