misc: make checks always fatal

This fixes #263.
This commit is contained in:
Austin English 2018-12-03 13:53:14 -06:00 committed by William Hubbs
parent 10dc65cc46
commit fb4dd351c7
2 changed files with 4 additions and 9 deletions

View File

@ -21,13 +21,10 @@ checkit() {
ret=0 ret=0
fail_on_out() { fail_on_out() {
# If FATAL_CHECKS is set, then fail when $out has output:
if [ -n "${FATAL_CHECKS}" ]; then
if [ -n "${out}" ]; then if [ -n "${out}" ]; then
eerror "Last command failed and FATAL_CHECKS is set; failing" eerror "Last command failed; failing"
exit 1 exit 1
fi fi
fi
} }
ebegin "Checking exported symbols in libeinfo.so (data)" ebegin "Checking exported symbols in libeinfo.so (data)"

View File

@ -20,6 +20,4 @@ cpus=$(getconf _NPROCESSORS_CONF || echo 1)
# make on TravisCI doesn't support -O yet # make on TravisCI doesn't support -O yet
make -j"${cpus}" make -j"${cpus}"
# This make whitespace/etc. checks fatal.
export FATAL_CHECKS=1
make test make test