Debug API test, syslogp() fails on Travis-CI for some reason

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson 2019-11-06 16:07:13 +01:00
parent 4b994b6ae5
commit 09085b2ba9

View File

@ -1,5 +1,5 @@
#!/bin/sh
set -e
set -ex
. ${srcdir}/test.rc
export MSG="no-openlog-apitest"
@ -30,5 +30,6 @@ kill -HUP `cat ${PID}`
sleep 2
./api -i troglobit -p
grep "troglobit - MSGID - ${MSG}" ${LOGV1}
grep "troglobit - MSGID - ${MSG}" ${LOGV1} || (echo "== ${LOGV1}"; tail -10 ${LOGV1}; echo "== ${LOG}"; tail -10 ${LOG})