1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-08 02:44:23 +00:00
This commit is contained in:
deadc0de6
2023-01-29 21:29:19 +01:00
committed by deadc0de
parent b9cde3b8dc
commit ddd60a38ac
131 changed files with 135 additions and 154 deletions

View File

@@ -18,24 +18,16 @@ cur=$(dirname "$(${rl} "${0}")")
tmpworkdir="/tmp/dotdrop-tests-workdir"
export DOTDROP_WORKDIR="${tmpworkdir}"
workers=${DOTDROP_WORKERS}
if [ -n "${workers}" ]; then
DOTDROP_WORKERS=${workers}
echo "ENABLE workers: ${workers}"
fi
# run bash tests
export DOTDROP_DEBUG="yes"
unset DOTDROP_FORCE_NODEBUG
# check if tmp dir is present
workdir_tmp_exists="no"
[ -d "${HOME}/.config/dotdrop/tmp" ] && workdir_tmp_exists="yes"
# run bash tests
if [ -z "${GITHUB_WORKFLOW}" ]; then
## local
export COVERAGE_FILE=
tests-ng/tests_launcher.py
else
## CI/CD
export COVERAGE_FILE="${cur}/.coverage"
# running multiple jobs in parallel sometimes
# messes with the results on remote servers
tests-ng/tests_launcher.py 1