From 722703da31c2be1b5d965503ce2cf8ede686901a Mon Sep 17 00:00:00 2001 From: mboelen Date: Tue, 19 Apr 2016 09:53:30 +0200 Subject: [PATCH] Extended ReportDetails function --- include/functions | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/include/functions b/include/functions index dd6545de..4c893e23 100644 --- a/include/functions +++ b/include/functions @@ -1633,14 +1633,18 @@ shift TEST_FIELD=$1 ;; - --key) - shift - TEST_KEY=$1 - ;; --preferredvalue|--preferred-value) shift TEST_PREFERRED_VALUE=$1 ;; + # Other details + --other) + shift + TEST_OTHER=$1 + --service) + shift + TEST_SERVICE=$1 + ;; --test) shift TEST_ID=$1 @@ -1657,7 +1661,7 @@ esac shift # Go to next parameter done - Report "details[]=${TEST_ID}|desc=${TEST_DESCRIPTION}:field=${TEST_FIELD}:key=${TEST_KEY}:prefval=${TEST_PREFERRED_VALUE}:value=${TEST_VALUE}|" + Report "details[]=${TEST_ID}|service=${TEST_SERVICE}|desc=${TEST_DESCRIPTION}:field=${TEST_FIELD}:prefval=${TEST_PREFERRED_VALUE}:value=${TEST_VALUE}:other=${TEST_OTHER}|" } # Log exceptions