tests: radius: save log on CI failure

Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
This commit is contained in:
Nikos Mavrogiannopoulos
2020-02-13 22:07:00 +01:00
parent fc901e03c4
commit a8d34a80b9
5 changed files with 5 additions and 9 deletions

View File

@@ -29,7 +29,7 @@ CLIPID=oc-pid.$$.tmp
PATH=${PATH}:/usr/sbin
IP=$(which ip)
OUTFILE=traffic.$$.tmp
RADIUSLOG=log.$$.tmp
RADIUSLOG=radius.$$.log
RADIUSD=$(which radiusd)
if test -z "${RADIUSD}";then
@@ -64,7 +64,6 @@ function finish {
test -n "${CLIPID}" && kill $(cat ${CLIPID}) >/dev/null 2>&1
test -n "${CLIPID}" && rm -f ${CLIPID} >/dev/null 2>&1
test -n "${CONFIG}" && rm -f ${CONFIG} >/dev/null 2>&1
test -n "${RADIUSLOG}" && rm -f ${RADIUSLOG} >/dev/null 2>&1
rm -f ${OUTFILE} 2>&1
}
trap finish EXIT

View File

@@ -29,7 +29,7 @@ CLIPID=oc-pid.$$.tmp
PATH=${PATH}:/usr/sbin
IP=$(which ip)
OUTFILE=traffic.$$.tmp
RADIUSLOG=log.$$.tmp
RADIUSLOG=radius-config.$$.log
RADIUSD=$(which radiusd)
if test -z "${RADIUSD}";then
@@ -64,7 +64,6 @@ function finish {
test -n "${CLIPID}" && kill $(cat ${CLIPID}) >/dev/null 2>&1
test -n "${CLIPID}" && rm -f ${CLIPID} >/dev/null 2>&1
test -n "${CONFIG}" && rm -f ${CONFIG} >/dev/null 2>&1
test -n "${RADIUSLOG}" && rm -f ${RADIUSLOG} >/dev/null 2>&1
rm -f ${OUTFILE} 2>&1
}
trap finish EXIT

View File

@@ -29,7 +29,7 @@ CLIPID=oc-pid.$$.tmp
PATH=${PATH}:/usr/sbin
IP=$(which ip)
OUTFILE=traffic.$$.tmp
RADIUSLOG=log.$$.tmp
RADIUSLOG=radius-group.$$.log
RADIUSD=$(which radiusd)
if test -z "${RADIUSD}";then
@@ -64,7 +64,6 @@ function finish {
test -f "${CLIPID}" && kill $(cat ${CLIPID}) >/dev/null 2>&1
test -n "${CLIPID}" && rm -f ${CLIPID} >/dev/null 2>&1
test -n "${CONFIG}" && rm -f ${CONFIG} >/dev/null 2>&1
test -n "${RADIUSLOG}" && rm -f ${RADIUSLOG} >/dev/null 2>&1
rm -f ${OUTFILE} 2>&1
}
trap finish EXIT

View File

@@ -30,7 +30,7 @@ CLIPID=oc-pid.$$.tmp
PATH=${PATH}:/usr/sbin
IP=$(which ip)
OUTFILE=traffic.$$.tmp
RADIUSLOG=log.$$.tmp
RADIUSLOG=radius-otp.$$.log
RADIUSD=$(which radiusd)
if test -z "${RADIUSD}";then
@@ -71,7 +71,6 @@ function finish {
test -f "${CLIPID}" && kill $(cat ${CLIPID}) >/dev/null 2>&1
test -n "${CLIPID}" && rm -f ${CLIPID} >/dev/null 2>&1
test -n "${CONFIG}" && rm -f ${CONFIG} >/dev/null 2>&1
test -n "${RADIUSLOG}" && rm -f ${RADIUSLOG} >/dev/null 2>&1
rm -f ${OUTFILE} 2>&1
}
trap finish EXIT