1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-16 17:20:16 +00:00

tests verbosity

This commit is contained in:
deadc0de6
2021-04-29 15:27:30 +02:00
parent 2654458c6e
commit 54c6aa7bb7
2 changed files with 9 additions and 12 deletions

View File

@@ -68,9 +68,6 @@ dotfiles:
profiles: profiles:
_EOF _EOF
export DOTDROP_FORCE_NODEBUG=yes
export DOTDROP_NOBANNER=yes
# import # import
echo "[+] import" echo "[+] import"
cd ${ddpath} | ${bin} import -c ${cfg} ${tmpd}/singlefile cd ${ddpath} | ${bin} import -c ${cfg} ${tmpd}/singlefile
@@ -123,8 +120,5 @@ grep fakediff ${tmpd}/fake &> /dev/null || exit 1
## CLEANING ## CLEANING
rm -rf ${basedir} ${tmpd} rm -rf ${basedir} ${tmpd}
unset DOTDROP_NOBANNER
unset DOTDROP_FORCE_NODEBUG
echo "OK" echo "OK"
exit 0 exit 0

View File

@@ -20,7 +20,7 @@ pyflakes dotdrop/
pyflakes tests/ pyflakes tests/
# pylint # pylint
#pylint --disable=R0902 --disable=R0913 --disable=R0903 dotdrop/ #pylint --disable=R0902 --disable=R0913 --disable=R0903 --disable=R0914 dotdrop/
# retrieve the nosetests binary # retrieve the nosetests binary
nosebin="nosetests" nosebin="nosetests"
@@ -46,18 +46,21 @@ if [ -z ${GITHUB_WORKFLOW} ]; then
## local ## local
export COVERAGE_FILE= export COVERAGE_FILE=
PYTHONPATH="dotdrop" ${nosebin} -s --processes=-1 --with-coverage --cover-package=dotdrop PYTHONPATH="dotdrop" ${nosebin} -s --processes=-1 --with-coverage --cover-package=dotdrop
#export DOTDROP_DEBUG=yes
#unset DOTDROP_FORCE_NODEBUG
else else
## CI/CD ## CI/CD
export COVERAGE_FILE="${cur}/.coverage" export COVERAGE_FILE="${cur}/.coverage"
PYTHONPATH="dotdrop" ${nosebin} --processes=0 --with-coverage --cover-package=dotdrop PYTHONPATH="dotdrop" ${nosebin} --processes=0 --with-coverage --cover-package=dotdrop
#unset DOTDROP_DEBUG=
#export DOTDROP_FORCE_NODEBUG=yes
fi fi
#PYTHONPATH="dotdrop" python3 -m pytest tests #PYTHONPATH="dotdrop" python3 -m pytest tests
# enable debug logs # disable debug logs
export DOTDROP_DEBUG=yes unset DOTDROP_DEBUG=
unset DOTDROP_FORCE_NODEBUG export DOTDROP_FORCE_NODEBUG=yes
# do not print debugs when running tests (faster)
#export DOTDROP_FORCE_NODEBUG=yes
export DOTDROP_WORKDIR=/tmp/dotdrop-tests-workdir export DOTDROP_WORKDIR=/tmp/dotdrop-tests-workdir
if [ ! -z ${workers} ]; then if [ ! -z ${workers} ]; then