Fix flowgraph IO test.
@@ -8,21 +8,14 @@ def test_check_flowgraph():
chip.node(flow, 'import', 'surelog')
chip.node(flow, 'syn', 'yosys')
chip.edge(flow, 'import', 'syn')
+ chip.set('asic', 'logiclib', 'dummylib')
for step in chip.getkeys('flowgraph', flow):
for index in chip.getkeys('flowgraph', flow, step):
# Setting up tool is optional
tool = chip.get('flowgraph', flow, step, index, 'tool')
if tool not in chip.builtin:
- chip.set('arg','step', step)
- chip.set('arg','index', index)
- func = chip.find_function(tool, 'setup', 'tools')
- func(chip)
- # Need to clear index, otherwise we will skip
- # setting up other indices. Clear step for good
- # measure.
- chip.set('arg','step', None)
- chip.set('arg','index', None)
+ chip._setup_tool(tool, step, index)
assert chip._check_flowgraph_io()
