1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-04 19:44:45 +00:00

improve diffing

This commit is contained in:
deadc0de6
2020-11-15 20:27:49 +01:00
parent 87f32478d9
commit 8ce96ffeeb
7 changed files with 91 additions and 44 deletions

View File

@@ -3,7 +3,8 @@
# Copyright (c) 2017, deadc0de6
# stop on first error
set -ev
#set -ev
set -e
# PEP8 tests
which pycodestyle >/dev/null 2>&1
@@ -54,9 +55,12 @@ unset DOTDROP_FORCE_NODEBUG
[ "$1" = '--python-only' ] || {
echo "doing extended tests"
logdir=`mktemp -d`
tot=`ls -1 tests-ng/*.sh | wc -l`
cnt=0
for scr in tests-ng/*.sh; do
cnt=$((cnt + 1))
logfile="${logdir}/`basename ${scr}`.log"
echo "-> running test ${scr} (logfile:${logfile})"
echo "-> (${cnt}/${tot}) running test ${scr} (logfile:${logfile})"
set +e
${scr} > "${logfile}" 2>&1
if [ "$?" -ne 0 ]; then