test.tools: use _toolchain.get_tool.
This commit is contained in:
parent
b14f5572d8
commit
98278a044d
|
@ -11,6 +11,7 @@ from contextlib import contextmanager
|
||||||
from ..hdl.ast import *
|
from ..hdl.ast import *
|
||||||
from ..hdl.ir import *
|
from ..hdl.ir import *
|
||||||
from ..back import rtlil
|
from ..back import rtlil
|
||||||
|
from .._toolchain import get_tool
|
||||||
|
|
||||||
|
|
||||||
__all__ = ["FHDLTestCase"]
|
__all__ = ["FHDLTestCase"]
|
||||||
|
@ -94,7 +95,7 @@ class FHDLTestCase(unittest.TestCase):
|
||||||
script=script,
|
script=script,
|
||||||
rtlil=rtlil.convert(Fragment.get(spec, platform="formal"))
|
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,
|
universal_newlines=True,
|
||||||
stdin=subprocess.PIPE, stdout=subprocess.PIPE) as proc:
|
stdin=subprocess.PIPE, stdout=subprocess.PIPE) as proc:
|
||||||
stdout, stderr = proc.communicate(config)
|
stdout, stderr = proc.communicate(config)
|
||||||
|
|
Loading…
Reference in a new issue