summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChase Qi <chase.qi@linaro.org>2017-05-25 09:51:19 +0800
committerMilosz Wasilewski <milosz.wasilewski@linaro.org>2017-05-25 11:20:49 +0000
commit5e44fbd1cb9ed00bc457dae8e3c1876949a9d632 (patch)
treede68be649ba1c1ee6e9e3f745c60f42a3d622368
parentc69235d1a51f4a69646db11a0beb28c3e45f80a4 (diff)
automated: android: xtest: improve result parser
Change-Id: I08cc2a8200c35e9551612fe9d1c25362f90f544d Signed-off-by: Chase Qi <chase.qi@linaro.org>
-rwxr-xr-xautomated/android/optee/optee-xtest.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/automated/android/optee/optee-xtest.sh b/automated/android/optee/optee-xtest.sh
index 0a8de78..6875cbb 100755
--- a/automated/android/optee/optee-xtest.sh
+++ b/automated/android/optee/optee-xtest.sh
@@ -46,7 +46,7 @@ fi
adb shell "echo xtest -l ${LEVEL} -t ${TEST_SUITE} 2>&1 | su" | tee "${LOGFILE}"
# Parse xtest test log.
-grep "^XTEST_TEE" "${LOGFILE}" \
+awk "/Result of testsuite ${TEST_SUITE}:/{flag=1; next} /+-----------------------------------------------------/{flag=0} flag" "${LOGFILE}" \
| sed 's/OK/pass/; s/FAILED/fail/; s/SKIPPED/skip/' \
| awk '{printf("%s %s\n", $1, $2)}' \
| tee -a "${RESULT_FILE}"