artiq-board: fix check for constraint errors

pull/16/head
Astro 4 years ago
parent 00e518e77d
commit 4dffefa46f
  1. 3
      artiq/artiq-board.nix

@ -55,8 +55,7 @@ in pkgs.python3Packages.buildPythonPackage rec {
preCheck = ''
# Search for PCREs in the Vivado output to check for errors
function check_log() {
grep -Pe "$1" artiq_${target}/${variant}/gateware/vivado.log
if [ $? -ne 1 ]; then
if [ $(grep -Pe "$1" artiq_${target}/${variant}/gateware/vivado.log) != 1 ]; then
exit 1
fi
}

Loading…
Cancel
Save