From bff70b048e3f7e8274b835687700156361de6836 Mon Sep 17 00:00:00 2001 From: Sebastian Chlad Date: Thu, 30 Apr 2020 13:15:18 +0200 Subject: [PATCH] Add $DESCRIPTION to the TEST_RUN Signed-off-by: Sebastian Chlad --- check | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/check b/check index dc89d13..0a4e539 100755 --- a/check +++ b/check @@ -167,7 +167,7 @@ _read_last_test_run() { local key value while IFS=$'\t' read -r key value; do - if [[ ! $key =~ ^date|status|reason|exit_status$ ]]; then + if [[ ! $key =~ ^description|date|status|reason|exit_status$ ]]; then LAST_TEST_RUN["$key"]="$value" fi done <"$seqres" @@ -267,7 +267,7 @@ _output_test_run() { { for key in "${!TEST_RUN[@]}"; do - if [[ $key =~ ^date|status|reason|exit_status$ ]]; then + if [[ $key =~ ^description|date|status|reason|exit_status$ ]]; then continue fi # [[ -v array[key] ]] was added in Bash 4.3. Do it this ugly @@ -331,6 +331,7 @@ _call_test() { declare -A TEST_RUN TEST_RUN["date"]="$(date "+%F %T")" + TEST_RUN["description"]="${DESCRIPTION}" mkdir -p "$(dirname "$seqres")" # Remove leftovers from last time. -- 2.49.0