]> www.infradead.org Git - users/hch/blktests.git/commitdiff
Add $DESCRIPTION to the TEST_RUN
authorSebastian Chlad <schlad@suse.de>
Thu, 30 Apr 2020 11:15:18 +0000 (13:15 +0200)
committerOmar Sandoval <osandov@osandov.com>
Thu, 30 Apr 2020 20:21:23 +0000 (13:21 -0700)
Signed-off-by: Sebastian Chlad <schlad@suse.de>
check

diff --git a/check b/check
index dc89d13e3e2e4a8235dfb3d3c0672d6c463ac28d..0a4e539a5cd956750b3e5cc6745b9eceddd00973 100755 (executable)
--- 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.