mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-09 08:54:16 +00:00
refactor the parsing
This commit is contained in:
18
tests.sh
18
tests.sh
@@ -8,7 +8,7 @@ set -ev
|
||||
# PEP8 tests
|
||||
which pycodestyle 2>/dev/null
|
||||
[ "$?" != "0" ] && echo "Install pycodestyle" && exit 1
|
||||
pycodestyle --ignore=W605 dotdrop/
|
||||
pycodestyle --ignore=W503,W504,W605 dotdrop/
|
||||
pycodestyle tests/
|
||||
pycodestyle scripts/
|
||||
|
||||
@@ -35,7 +35,17 @@ PYTHONPATH=dotdrop ${nosebin} -s --with-coverage --cover-package=dotdrop
|
||||
|
||||
## execute bash script tests
|
||||
[ "$1" = '--python-only' ] || {
|
||||
for scr in tests-ng/*.sh; do
|
||||
${scr}
|
||||
done
|
||||
log=`mktemp`
|
||||
for scr in tests-ng/*.sh; do
|
||||
${scr} 2>&1 | tee ${log}
|
||||
set +e
|
||||
if grep Traceback ${log}; then
|
||||
echo "crash found in logs"
|
||||
rm -f ${log}
|
||||
exit 1
|
||||
fi
|
||||
set -e
|
||||
done
|
||||
rm -f ${log}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user