summaryrefslogtreecommitdiff
path: root/automated/utils/send-to-lava.sh
diff options
context:
space:
mode:
Diffstat (limited to 'automated/utils/send-to-lava.sh')
-rwxr-xr-xautomated/utils/send-to-lava.sh4
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}')"