From 93e33a4d9a905a8465dae2361f119a5944e9934b Mon Sep 17 00:00:00 2001 From: deadc0de6 Date: Tue, 24 May 2022 23:10:39 +0200 Subject: [PATCH] add debug mode in ci/cd --- tests.sh | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/tests.sh b/tests.sh index 5c03cb5..d35bdb8 100755 --- a/tests.sh +++ b/tests.sh @@ -41,9 +41,6 @@ pylint \ --disable=C0209 \ dotdrop/ -# do not print debugs when running tests (faster) -export DOTDROP_FORCE_NODEBUG=yes - # coverage file location rl="readlink -f" if ! ${rl} "${0}" >/dev/null 2>&1; then @@ -65,18 +62,19 @@ fi if [ -z ${GITHUB_WORKFLOW} ]; then ## local export COVERAGE_FILE= + # do not print debugs when running tests (faster) + unset DOTDROP_DEBUG + export DOTDROP_FORCE_NODEBUG=yes + # tests PYTHONPATH="dotdrop" nose2 --with-coverage --coverage dotdrop --plugin=nose2.plugins.mp -N0 else ## CI/CD export COVERAGE_FILE="${cur}/.coverage" + # tests PYTHONPATH="dotdrop" nose2 --with-coverage --coverage dotdrop fi #PYTHONPATH="dotdrop" python3 -m pytest tests -# disable debug logs -unset DOTDROP_DEBUG -export DOTDROP_FORCE_NODEBUG=yes - tmpworkdir="/tmp/dotdrop-tests-workdir" export DOTDROP_WORKDIR="${tmpworkdir}"