TT#29620 Clean TAP test warning: CREDS appears unused [SC2034]

The variable $CREDS is necessary for /usr/share/ngcp-panel-tools/ngcp-api.inc
so we need to pass it explicetly to prevent shellcheck warnings here.

Change-Id: Ic26425bab6b7f4b71aa267db3ec897245753b64d
changes/78/21278/8
Alexander Lutay 8 years ago
parent b1e004b1ed
commit e0a6c8746c

@ -3,6 +3,13 @@
set -e
importcreds () {
local CREDS=$1
if [ -z "${CREDS}" ]; then
echo "Error: missing mandatory file name to read" >&2
exit 1
fi
if [ ! -f "${CREDS}" ]; then
return
fi

@ -19,7 +19,7 @@ EOF
if [ -z "$APIUSER" ] ; then
if [ -f "$TOOLS" ] ; then
source "$TOOLS"
importcreds
importcreds "$CREDS"
else
APIUSER="administrator:administrator"
fi

@ -19,7 +19,7 @@ EOF
if [ -z "$APIUSER" ] ; then
if [ -f "$TOOLS" ] ; then
source "$TOOLS"
importcreds
importcreds "$CREDS"
else
APIUSER="administrator:administrator"
fi

@ -21,7 +21,7 @@ EOF
if [ -z "$APIUSER" ] ; then
if [ -f "$TOOLS" ] ; then
source "$TOOLS"
importcreds
importcreds "$CREDS"
else
APIUSER="administrator:administrator"
fi

@ -20,7 +20,7 @@ EOF
if [ -z "$APIUSER" ] ; then
if [ -f "$TOOLS" ] ; then
source "$TOOLS"
importcreds
importcreds "$CREDS"
else
APIUSER="administrator:administrator"
fi

@ -20,7 +20,7 @@ EOF
if [ -z "$APIUSER" ] ; then
if [ -f "$TOOLS" ] ; then
source "$TOOLS"
importcreds
importcreds "$CREDS"
else
APIUSER="administrator:administrator"
fi

Loading…
Cancel
Save