3
0
Fork 0
forked from mirrors/nixpkgs

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 ];
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
make test
'';