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
fail_on_out() {
# If FATAL_CHECKS is set, then fail when $out has output:
if [ -n "${FATAL_CHECKS}" ]; then
if [ -n "${out}" ]; then
eerror "Last command failed and FATAL_CHECKS is set; failing"
exit 1
fi
fi
if [ -n "${out}" ]; then
eerror "Last command failed; failing"
exit 1
fi
}
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 -j"${cpus}"
# This make whitespace/etc. checks fatal.
export FATAL_CHECKS=1
make test