mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-04 14:31:46 +00:00
fix clear workdir tests
This commit is contained in:
13
tests.sh
13
tests.sh
@@ -82,7 +82,8 @@ fi
|
||||
unset DOTDROP_DEBUG=
|
||||
export DOTDROP_FORCE_NODEBUG=yes
|
||||
|
||||
export DOTDROP_WORKDIR=/tmp/dotdrop-tests-workdir
|
||||
tmpworkdir="/tmp/dotdrop-tests-workdir"
|
||||
export DOTDROP_WORKDIR="${tmpworkdir}"
|
||||
|
||||
if [ ! -z ${workers} ]; then
|
||||
DOTDROP_WORKERS=${workers}
|
||||
@@ -90,8 +91,8 @@ if [ ! -z ${workers} ]; then
|
||||
fi
|
||||
|
||||
# run bash tests
|
||||
workdir_tmp="no"
|
||||
[ -d "~/.config/dotdrop/tmp" ] && workdir_tmp="yes"
|
||||
workdir_tmp_exists="no"
|
||||
[ -d "~/.config/dotdrop/tmp" ] && workdir_tmp_exists="yes"
|
||||
if [ -z ${GITHUB_WORKFLOW} ]; then
|
||||
## local
|
||||
export COVERAGE_FILE=
|
||||
@@ -101,7 +102,11 @@ else
|
||||
export COVERAGE_FILE="${cur}/.coverage"
|
||||
tests-ng/tests-launcher.py 1
|
||||
fi
|
||||
[ "${workdir_tmp}" = "no" ] && rm -rf ~/.config/dotdrop/tmp
|
||||
|
||||
# clear workdir
|
||||
[ "${workdir_tmp_exists}" = "no" ] && rm -rf ~/.config/dotdrop/tmp
|
||||
# clear temp workdir
|
||||
rm -rf "${tmpworkdir}"
|
||||
|
||||
## test the doc with remark
|
||||
## https://github.com/remarkjs/remark-validate-links
|
||||
|
||||
Reference in New Issue
Block a user