diff options
author | Chase Qi <chase.qi@linaro.org> | 2016-11-07 15:49:06 +0800 |
---|---|---|
committer | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2016-11-07 16:09:37 +0000 |
commit | c763b9a82600febd536beb484197168a655ed7fc (patch) | |
tree | 18efd055dd873123d47cddb465fb6bf3f618be16 /automated | |
parent | 4f7c7393b54afc17007b04f34129434e3d3e5e5d (diff) |
automated: send-to-lava: accept any character for measurement and units
Change-Id: I61ade512f1f9f887e51cde8244ed51a40952df19
Signed-off-by: Chase Qi <chase.qi@linaro.org>
Diffstat (limited to 'automated')
-rwxr-xr-x | automated/utils/send-to-lava.sh | 4 |
1 files changed, 2 insertions, 2 deletions
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 "<TEST_CASE_ID=${test} RESULT=${result}>" 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}')" |