mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-11 06:05:49 +00:00
updated verify to only use comments with "#"
This commit is contained in:
parent
dee2822359
commit
d47a731bda
@ -28,15 +28,15 @@ do
|
|||||||
echo -e "Check $(printf %-24s ${stub}) \e[33m ... IGNORE \e[39m"
|
echo -e "Check $(printf %-24s ${stub}) \e[33m ... IGNORE \e[39m"
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
# KMG: changed diff snippet to a grep that will strip comments with '//' and '#' out of the reference file
|
# KMG: changed diff snippet to a grep that will strip comments with '#' out of the reference file
|
||||||
diff --ignore-case --ignore-trailing-space --strip-trailing-cr <(grep -o '^[^//#]*' ${ref}) ${sig} &> /dev/null
|
diff --ignore-case --ignore-trailing-space --strip-trailing-cr <(grep -o '^[^#]*' ${ref}) ${sig} &> /dev/null
|
||||||
if [ $? == 0 ]
|
if [ $? == 0 ]
|
||||||
then
|
then
|
||||||
echo -e "\e[32m ... OK \e[39m"
|
echo -e "\e[32m ... OK \e[39m"
|
||||||
else
|
else
|
||||||
echo -e "\e[31m ... FAIL \e[39m"
|
echo -e "\e[31m ... FAIL \e[39m"
|
||||||
FAIL=$((${FAIL} + 1))
|
FAIL=$((${FAIL} + 1))
|
||||||
sdiff ${ref} ${sig} > ${dif}
|
sdiff <(grep -o '^[^#]*' ${ref}) ${sig} > ${dif}
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user