Skip to content

Commit

Permalink
python3Packages.cocotb: fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
risicle authored and Jon committed Oct 12, 2020
1 parent 41f00c3 commit 7841348
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkgs/development/python-modules/cocotb/default.nix
Expand Up @@ -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
'';
Expand Down

0 comments on commit 7841348

Please sign in to comment.