From dad31efb1fe2ce3957c444fcc2118395e1dbea43 Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Fri, 7 Aug 2020 17:25:36 +0200 Subject: [PATCH] hide debug logs in travis --- tests.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tests.sh b/tests.sh index c598ca7..3823a0f 100755 --- a/tests.sh +++ b/tests.sh @@ -37,16 +37,20 @@ PYTHONPATH=dotdrop ${nosebin} -s --with-coverage --cover-package=dotdrop #PYTHONPATH=dotdrop python3 -m pytest tests # enable debug logs -#export DOTDROP_DEBUG= -#unset DOTDROP_FORCE_NODEBUG +export DOTDROP_DEBUG= +unset DOTDROP_FORCE_NODEBUG # do not print debugs when running tests (faster) -export DOTDROP_FORCE_NODEBUG=yes +#export DOTDROP_FORCE_NODEBUG=yes ## execute bash script tests [ "$1" = '--python-only' ] || { log=`mktemp` for scr in tests-ng/*.sh; do - ${scr} > "${log}" 2>&1 & + if [ -z ${TRAVIS} ]; then + ${scr} > "${log}" 2>&1 & + else + ${scr} > "${log}" 2>&1 >/dev/null & + fi tail --pid="$!" -f "${log}" set +e wait "$!"