Check whether daemon log is as empty as it should

This commit is contained in:
ZyX 2014-08-02 22:03:22 +04:00
parent 28aee92c51
commit 44cca97566
1 changed files with 7 additions and 0 deletions

View File

@ -165,6 +165,13 @@ for TEST_TYPE in "daemon" "nodaemon" ; do
if test $TEST_TYPE == daemon ; then
./scripts/powerline-daemon -k
wait $(cat tests/shell/daemon_pid)
if ! test -z "$(cat tests/shell/daemon_log)" ; then
echo '____________________________________________________________'
echo "Daemon log:"
echo '============================================================'
cat tests/shell/daemon_log
FAILED=1
fi
fi
done