diff options
author | Naresh Kamboju <naresh.kamboju@linaro.org> | 2017-05-24 16:45:38 +0530 |
---|---|---|
committer | Naresh Kamboju <naresh.kamboju@linaro.org> | 2017-05-25 14:19:24 +0530 |
commit | cd78bd20e0e004bbe7b2f9446eca513dda1724ce (patch) | |
tree | c6e19d5a659517d1b69cdd86f96cee833c564682 /android | |
parent | 48f4a4a692724719024ef49addf518333a732356 (diff) |
android: optee-xtest: improve test results parser
Results print format changed on upstream optee_test tree
https://github.com/OP-TEE/optee_test/commit/213ca8aaf4eafe9d26af76db7b31d9595ce57e6f
Use ${TEST_SUITE} as prefix to detect testcase names.
Change-Id: I5f5dc30201f61049fa0882903ee830b01acac445
Signed-off-by: Naresh Kamboju <naresh.kamboju@linaro.org>
Diffstat (limited to 'android')
-rwxr-xr-x | android/scripts/optee-xtest.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/android/scripts/optee-xtest.sh b/android/scripts/optee-xtest.sh index de2226d..14ccb64 100755 --- a/android/scripts/optee-xtest.sh +++ b/android/scripts/optee-xtest.sh @@ -26,7 +26,7 @@ TEST_SUITE="$2" pass_fail_parser() { local field="$1" # Collect test case ID and case name, then join them with minus. - grep "^\* XTEST_TEE" "${TEST_SUITE}"_output.txt \ + grep "^\* ${TEST_SUITE}" "${TEST_SUITE}"_output.txt \ | cut -d "_" -f"${field}"- \ | sed 's/ /-/g' > "${TEST_SUITE}"_case_list.txt @@ -35,7 +35,7 @@ pass_fail_parser() { while read line; do test_id=$(echo "${line}" | awk -F'-' '{ print $1 }') test_case="${line}" - test_result=$(grep -m 1 "^XTEST_TEE.*${test_id} [OK|FAILED]" \ + test_result=$(grep -m 1 "^${TEST_SUITE}.*${test_id} [OK|FAILED]" \ "${TEST_SUITE}"_output.txt | awk '{ print $2 }') if [ "${test_result}" = "OK" ]; then @@ -55,7 +55,7 @@ benchmark_parser() { test_id=$(echo "${line}" | awk -F'-' '{ print $1 }') test_case=$(echo "${line}" | awk '{ print $1 }') test_result=$(echo "${line}" | awk '{ print $2 }') - sed -n "/^\* XTEST.*_${test_id}/,/XTEST.*_${test_id} [OK|FAILED]/p" \ + sed -n "/^\* ${TEST_SUITE}.*_${test_id}/,/${TEST_SUITE}.*_${test_id} [OK|FAILED]/p" \ "${TEST_SUITE}"_output.txt > "${test_id}"_benchmark_raw.txt grep "[0-9].*|" "${test_id}"_benchmark_raw.txt \ |