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 = ''
|
preCheck = ''
|
||||||
# Search for PCREs in the Vivado output to check for errors
|
# Search for PCREs in the Vivado output to check for errors
|
||||||
function check_log() {
|
function check_log() {
|
||||||
grep -Pe "$1" artiq_${target}/${variant}/gateware/vivado.log
|
if [ $(grep -Pe "$1" artiq_${target}/${variant}/gateware/vivado.log) != 1 ]; then
|
||||||
if [ $? -ne 1 ]; then
|
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user