artiq-board: fix check for constraint errors

This commit is contained in:
Astro 2019-05-27 22:46:36 +02:00
parent 00e518e77d
commit 4dffefa46f
1 changed files with 1 additions and 2 deletions

View File

@ -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
}