Don't override variables of ReportDetails functions on every parameter

This commit is contained in:
Michael Boelen 2016-06-30 11:34:27 +02:00
parent 114d95c475
commit a1ebc18a76
1 changed files with 8 additions and 9 deletions

View File

@ -1792,14 +1792,14 @@
################################################################################
ReportDetails() {
TEST_DESCRIPTION=""
TEST_FIELD=""
TEST_ID=""
TEST_OTHER=""
TEST_PREFERRED_VALUE=""
TEST_SERVICE=""
TEST_VALUE=""
while [ $# -ge 1 ]; do
TEST_DESCRIPTION=""
TEST_FIELD=""
TEST_ID=""
TEST_OTHER=""
TEST_PREFERRED_VALUE=""
TEST_SERVICE=""
TEST_VALUE=""
case $1 in
--description)
@ -1821,7 +1821,7 @@
;;
--service)
shift
TEST_SERVICE="service:$1;"
TEST_SERVICE="$1"
;;
--test)
shift
@ -1831,7 +1831,6 @@
shift
TEST_VALUE="value:$1;"
;;
*)
echo "INVALID OPTION (ReportDetails): $1"
ExitFatal