python3Packages.cocotb: fix tests

This commit is contained in:
Robert Scott 2020-10-11 19:49:46 +01:00 committed by Jon
parent 41f00c35d0
commit 78413483d3

View File

@ -33,6 +33,12 @@ buildPythonPackage rec {
checkInputs = [ swig verilog ]; checkInputs = [ swig verilog ];
checkPhase = '' checkPhase = ''
# test expected failures actually pass because of a fix in our icarus version
# https://github.com/cocotb/cocotb/issues/1952
substituteInPlace tests/test_cases/test_discovery/test_discovery.py \
--replace 'def access_single_bit' $'def foo(x): pass\ndef foo' \
--replace 'def access_single_bit_assignment' $'def foo(x): pass\ndef foo'
export PATH=$out/bin:$PATH export PATH=$out/bin:$PATH
make test make test
''; '';