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

fix tests on travis

This commit is contained in:
deadc0de6
2020-10-25 21:05:17 +01:00
parent 4780cb04c2
commit 8ab2a3a72f

View File

@@ -49,17 +49,12 @@ unset DOTDROP_FORCE_NODEBUG
for scr in tests-ng/*.sh; do for scr in tests-ng/*.sh; do
logfile="${logdir}/`basename ${scr}`.log" logfile="${logdir}/`basename ${scr}`.log"
echo "-> running test ${scr} (logfile:${logfile})" echo "-> running test ${scr} (logfile:${logfile})"
if [ -z ${TRAVIS} ]; then
${scr} > "${logfile}" 2>&1 & ${scr} > "${logfile}" 2>&1 &
#tail --pid="$!" -f "${logfile}"
else
#${scr} > "${log}" >/dev/null 2>&1 &
${scr} > "${logfile}" 2>&1 &
fi
set +e set +e
wait "$!" wait "$!"
if [ "$?" -ne 0 ]; then if [ "$?" -ne 0 ]; then
echo "test ${scr} finished with error" echo "test ${scr} finished with error"
cat ${logfile}
rm -rf ${logdir} rm -rf ${logdir}
exit 1 exit 1
elif grep Traceback ${logfile}; then elif grep Traceback ${logfile}; then