From 66a0233d64dcd838d7250932806b40a9594ec97d Mon Sep 17 00:00:00 2001 From: Naresh Kamboju Date: Fri, 30 Sep 2016 05:52:21 +0530 Subject: send-to-lava: ignore results case Change-Id: Id01743d67bc24ad2af7321db9afd8395afc07a73 Signed-off-by: Naresh Kamboju --- automated/utils/send-to-lava.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/automated/utils/send-to-lava.sh b/automated/utils/send-to-lava.sh index 55cbc6d..2764853 100755 --- a/automated/utils/send-to-lava.sh +++ b/automated/utils/send-to-lava.sh @@ -4,7 +4,7 @@ RESULT_FILE="$1" if [ -f "${RESULT_FILE}" ]; then while read line; do - if echo "${line}" | egrep -q ".* +(pass|fail|skip)$"; then + if echo "${line}" | egrep -iq ".* +(pass|fail|skip)$"; then test="$(echo "${line}" | awk '{print $1}')" result="$(echo "${line}" | awk '{print $2}')" @@ -13,7 +13,7 @@ if [ -f "${RESULT_FILE}" ]; then else echo "" fi - elif echo "${line}" | egrep -q ".* +(pass|fail|skip) +[0-9.E-]+ [A-Za-z./]+$"; then + elif echo "${line}" | egrep -iq ".* +(pass|fail|skip) +[0-9.E-]+ [A-Za-z./]+$"; then test="$(echo "${line}" | awk '{print $1}')" result="$(echo "${line}" | awk '{print $2}')" measurement="$(echo "${line}" | awk '{print $3}')" -- cgit v1.2.3