forked from M-Labs/nix-scripts
artiq-board: fix check for constraint errors
This commit is contained in:
parent
00e518e77d
commit
4dffefa46f
@ -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…
Reference in New Issue
Block a user