From aeb6ebbab70d812c49074577bbab5140d38d0dc4 Mon Sep 17 00:00:00 2001 From: Graham Whaley Date: Tue, 13 Aug 2019 18:07:01 +0100 Subject: [PATCH] metrics: json: default RUNTIME to 'default' If a RUNTIME is not set, then save it as 'default' in the JSON rather than an empty string, as the emptry string does not render well later in any graphing. Signed-off-by: Graham Whaley --- metrics/lib/json.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metrics/lib/json.bash b/metrics/lib/json.bash index 1eb617b..1641836 100644 --- a/metrics/lib/json.bash +++ b/metrics/lib/json.bash @@ -69,7 +69,7 @@ EOF local json="$(cat << EOF "test" : { - "runtime": "${RUNTIME}", + "runtime": "${RUNTIME:-default}", "testname": "${TEST_NAME}" } EOF