File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -67,8 +67,8 @@ def configure_graphs(args: list[str]) -> Iterable[PipelineGraph]:
6767 try :
6868 graph = read_config ([filename ])
6969 except IOError as exc :
70- logger .warning ("Error reading %s: %s" , filename , exc )
71- continue
70+ logger .error ("Error reading %s: %s" , filename , exc )
71+ sys . exit ( 2 )
7272
7373 for node_name , config_key , config_val in config :
7474 node = graph .find_node (node_name )
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ def test_read_config_dict_no_plugin():
2727
2828def test_write_config ():
2929 pn = PipelineNode ("node" , plugin = NothingPlugin ("node" ))
30- pn .set_config ("foo " , "bar " , "baz " )
30+ pn .set_config ("param " , "107 " , "" )
3131 pg = PipelineGraph ([pn ])
3232
3333 buf = io .StringIO ()
@@ -37,7 +37,7 @@ def test_write_config():
3737
3838 s = buf .getvalue ()
3939 assert s .startswith ("[node]" )
40- assert "foo = 'bar' " in s
40+ assert "param = 107 " in s
4141
4242
4343def test_write_config_node_string ():
You can’t perform that action at this time.
0 commit comments