mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-02-16 16:45:16 +00:00
run test in fg
This commit is contained in:
3
tests.sh
3
tests.sh
@@ -49,9 +49,8 @@ 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})"
|
||||||
${scr} > "${logfile}" 2>&1 &
|
|
||||||
set +e
|
set +e
|
||||||
wait "$!"
|
${scr} > "${logfile}" 2>&1
|
||||||
if [ "$?" -ne 0 ]; then
|
if [ "$?" -ne 0 ]; then
|
||||||
echo "test ${scr} finished with error"
|
echo "test ${scr} finished with error"
|
||||||
cat ${logfile}
|
cat ${logfile}
|
||||||
|
|||||||
Reference in New Issue
Block a user