From 7260715272f3b15cad468f9f5ee5db42cf009778 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 28 Aug 2019 12:52:16 +0100 Subject: [PATCH] test.tools: use _toolchain.get_tool. --- nmigen/test/tools.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nmigen/test/tools.py b/nmigen/test/tools.py index cb4ee49..ba9846f 100644 --- a/nmigen/test/tools.py +++ b/nmigen/test/tools.py @@ -11,6 +11,7 @@ from contextlib import contextmanager from ..hdl.ast import * from ..hdl.ir import * from ..back import rtlil +from .._toolchain import get_tool __all__ = ["FHDLTestCase"] @@ -94,7 +95,7 @@ class FHDLTestCase(unittest.TestCase): script=script, rtlil=rtlil.convert(Fragment.get(spec, platform="formal")) ) - with subprocess.Popen(["sby", "-f", "-d", spec_name], cwd=spec_dir, + with subprocess.Popen([get_tool("sby"), "-f", "-d", spec_name], cwd=spec_dir, universal_newlines=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE) as proc: stdout, stderr = proc.communicate(config) -- 2.30.2