CI: run testsuite with -Werror.
This commit is contained in:
parent
c6150d0586
commit
10fd5cff4b
1
.github/workflows/main.yaml
vendored
1
.github/workflows/main.yaml
vendored
|
@ -33,6 +33,7 @@ jobs:
|
|||
- name: Run tests
|
||||
run: |
|
||||
export NMIGEN_USE_YOSYS=builtin YOSYS=yowasp-yosys SBY=yowasp-sby SMTBMC=yowasp-yosys-smtbmc
|
||||
export PYTHONWARNINGS=error
|
||||
python -m coverage run -m unittest
|
||||
codecov
|
||||
document:
|
||||
|
|
|
@ -74,9 +74,10 @@ class FHDLTestCase(unittest.TestCase):
|
|||
script=script,
|
||||
rtlil=rtlil.convert(Fragment.get(spec, platform="formal"))
|
||||
)
|
||||
with subprocess.Popen([require_tool("sby"), "-f", "-d", spec_name], cwd=spec_dir,
|
||||
universal_newlines=True,
|
||||
stdin=subprocess.PIPE, stdout=subprocess.PIPE) as proc:
|
||||
with subprocess.Popen(
|
||||
[require_tool("sby"), "-f", "-d", spec_name],
|
||||
cwd=spec_dir, env={**os.environ, "PYTHONWARNINGS":"ignore"},
|
||||
universal_newlines=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE) as proc:
|
||||
stdout, stderr = proc.communicate(config)
|
||||
if proc.returncode != 0:
|
||||
self.fail("Formal verification failed:\n" + stdout)
|
||||
|
|
Loading…
Reference in a new issue