3
0
Fork 0
mirror of https://github.com/YosysHQ/sby.git synced 2025-04-05 22:14:08 +00:00

tests: Fix test_rules.py after sby config parser changes

This commit is contained in:
Jannis Harder 2022-09-03 00:03:28 +02:00
parent 4adb99ea30
commit 586be8ba96

View file

@ -51,15 +51,16 @@ with rules_file.open("w") as rules:
required_tools = set()
for engine in info["engines"]:
engine, solver = parse_engine(engine)
engines.add(engine)
required_tools.update(
REQUIRED_TOOLS.get((engine, solver), REQUIRED_TOOLS.get(engine, ()))
)
if solver:
solvers.add(solver)
engine_solvers.add((engine, solver))
for mode_engines in info["engines"].values():
for engine in mode_engines:
engine, solver = parse_engine(engine)
engines.add(engine)
required_tools.update(
REQUIRED_TOOLS.get((engine, solver), REQUIRED_TOOLS.get(engine, ()))
)
if solver:
solvers.add(solver)
engine_solvers.add((engine, solver))
if any(
line.startswith("read -verific") or line.startswith("verific")