You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
975 B
40 lines
975 B
#!/bin/bash |
|
|
|
# run the filter-known-issues.py script to remove "expected" warning |
|
# messages from the output of the document build process and write |
|
# the filtered output to stdout |
|
# |
|
# Only argument is the name of the log file saved by the build. |
|
|
|
KI_SCRIPT=${ZEPHYR_BASE}/scripts/filter-known-issues.py |
|
CONFIG_DIR=${ZEPHYR_BASE}/.known-issues/doc |
|
|
|
LOG_FILE=$1 |
|
|
|
red='\E[31m' |
|
green='\e[32m' |
|
|
|
if [ -z "${LOG_FILE}" ]; then |
|
echo "Error in $0: missing input parameter <logfile>" |
|
exit 1 |
|
fi |
|
|
|
if [ -s "${LOG_FILE}" ]; then |
|
$KI_SCRIPT --config-dir ${CONFIG_DIR} ${LOG_FILE} > doc.warnings 2>&1 |
|
if [ -s doc.warnings ]; then |
|
echo |
|
echo -e "${red}New errors/warnings found, please fix them:" |
|
echo -e "==============================================" |
|
tput sgr0 |
|
echo |
|
cat doc.warnings |
|
echo |
|
else |
|
echo -e "${green}No new errors/warnings." |
|
tput sgr0 |
|
fi |
|
|
|
else |
|
echo "Error in $0: logfile \"${LOG_FILE}\" not found." |
|
exit 1 |
|
fi
|
|
|