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 <graham.whaley@intel.com>
This commit is contained in:
Graham Whaley
2019-08-13 18:07:01 +01:00
committed by David Lyle
parent 40cca1a8d4
commit aeb6ebbab7
+1 -1
View File
@@ -69,7 +69,7 @@ EOF
local json="$(cat << EOF
"test" : {
"runtime": "${RUNTIME}",
"runtime": "${RUNTIME:-default}",
"testname": "${TEST_NAME}"
}
EOF