mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
devel/debug: restructure again for maximum effect
This commit is contained in:
@@ -46,7 +46,6 @@ while getopts adlV OPT; do
|
||||
;;
|
||||
d)
|
||||
DO_DEBUG="-d"
|
||||
PATTERNS="-e ."
|
||||
;;
|
||||
l)
|
||||
DO_LIST="-l"
|
||||
@@ -95,16 +94,22 @@ run()
|
||||
if [ -n "${TESTCASE}" -a "${TESTCASE}" != "${CASE}" ]; then
|
||||
continue
|
||||
fi
|
||||
|
||||
echo -n ">>> $(basename ${TESTDIR})(${TESTFILE}:${CASE}): "
|
||||
|
||||
if [ -n "${CLEANUP}" ]; then
|
||||
${ATFCMD} ${TEST} ${CASE}:cleanup > /dev/null 2>&1
|
||||
fi
|
||||
RESULT=$( (${ATFCMD} ${TEST} ${CASE} 2>&1) | grep ${PATTERNS})
|
||||
|
||||
RESULT=$(${ATFCMD} ${TEST} ${CASE} 2>&1)
|
||||
|
||||
if [ -n "${CLEANUP}" ]; then
|
||||
${ATFCMD} ${TEST} ${CASE}:cleanup > /dev/null 2>&1
|
||||
fi
|
||||
if [ -z "${DO_DEBUG}" ]; then
|
||||
echo ">>> $(basename ${TESTDIR})(${TESTFILE}:${CASE}): ${RESULT}"
|
||||
else
|
||||
|
||||
(echo "${RESULT}" | grep ${PATTERN})
|
||||
|
||||
if [ -n "${DO_DEBUG}" ]; then
|
||||
echo "${RESULT}"
|
||||
fi
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user