From 042d5422311287582b7639e0350bb7833ae73d93 Mon Sep 17 00:00:00 2001 From: ZyX Date: Sat, 23 Aug 2014 03:52:09 +0400 Subject: [PATCH] Also test whether running daemon is successfull without arguments --- tests/test_shells/test.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/tests/test_shells/test.sh b/tests/test_shells/test.sh index 40990e81..903ac79c 100755 --- a/tests/test_shells/test.sh +++ b/tests/test_shells/test.sh @@ -292,6 +292,23 @@ if test -z "${ONLY_SHELL}" || test "x${ONLY_SHELL%sh}" != "x${ONLY_SHELL}" || te done fi +if ! $PYTHON scripts/powerline-daemon &> tests/shell/daemon_log_2 ; then + echo "Daemon exited with status $?" + FAILED=1 +else + sleep 1 + $PYTHON scripts/powerline-daemon -k +fi + +if ! test -z "$(cat tests/shell/daemon_log_2)" ; then + FAILED=1 + echo '____________________________________________________________' + echo "Daemon log (2nd):" + echo '============================================================' + cat tests/shell/daemon_log_2 + FAILED=1 +fi + if test "x${ONLY_SHELL}" = "x" || test "x${ONLY_SHELL}" = "xipython" ; then echo "> $(which ipython)" if ! run_test ipython ipython ipython ; then