From c763b9a82600febd536beb484197168a655ed7fc Mon Sep 17 00:00:00 2001 From: Chase Qi Date: Mon, 7 Nov 2016 15:49:06 +0800 Subject: automated: send-to-lava: accept any character for measurement and units Change-Id: I61ade512f1f9f887e51cde8244ed51a40952df19 Signed-off-by: Chase Qi --- automated/utils/send-to-lava.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'automated/utils/send-to-lava.sh') diff --git a/automated/utils/send-to-lava.sh b/automated/utils/send-to-lava.sh index ddd7a36..9660b97 100755 --- a/automated/utils/send-to-lava.sh +++ b/automated/utils/send-to-lava.sh @@ -6,7 +6,7 @@ command -v lava-test-case lava_test_case="$?" if [ -f "${RESULT_FILE}" ]; then - while read line; do + while read -r line; do if echo "${line}" | egrep -iq ".* +(pass|fail|skip)$"; then test="$(echo "${line}" | awk '{print $1}')" result="$(echo "${line}" | awk '{print $2}')" @@ -16,7 +16,7 @@ if [ -f "${RESULT_FILE}" ]; then else echo "" fi - elif echo "${line}" | egrep -iq ".* +(pass|fail|skip) +[0-9.E-]+ [A-Za-z./]+$"; then + elif echo "${line}" | egrep -iq ".*+ (pass|fail|skip)+ .*+ .*"; then test="$(echo "${line}" | awk '{print $1}')" result="$(echo "${line}" | awk '{print $2}')" measurement="$(echo "${line}" | awk '{print $3}')" -- cgit v1.2.3