diff options
author | Naresh Kamboju <naresh.kamboju@linaro.org> | 2016-09-30 01:17:40 +0530 |
---|---|---|
committer | Naresh Kamboju <naresh.kamboju@linaro.org> | 2016-09-30 01:17:40 +0530 |
commit | cd39cab0334fd4c23db5af3e8dad827cb386a83b (patch) | |
tree | 32aaaae2379a12fff8aa1de5ca290bbc9bffd8b8 | |
parent | 7670aa94f9b20f98e1594de34e3dbfbac37027f4 (diff) |
ltp: debug results
Signed-off-by: Naresh Kamboju <naresh.kamboju@linaro.org>
-rwxr-xr-x | automated/lib/sh-test-lib | 2 | ||||
-rwxr-xr-x | automated/linux/ltp/ltp.sh | 1 | ||||
-rw-r--r-- | automated/linux/ltp/ltp.yaml | 4 |
3 files changed, 6 insertions, 1 deletions
diff --git a/automated/lib/sh-test-lib b/automated/lib/sh-test-lib index fca1153..10cc58b 100755 --- a/automated/lib/sh-test-lib +++ b/automated/lib/sh-test-lib @@ -65,7 +65,7 @@ add_metric() { local measurement="$3" local units="$4" - echo "${test} ${result} ${measurement} ${units}" | tee -a "${RESULT_FILE}" + echo "${test} ${result} ${measurement} ${units}" | tee -a "${RESULT_FILE_2}" } dist_name() { diff --git a/automated/linux/ltp/ltp.sh b/automated/linux/ltp/ltp.sh index 4eade04..70ba7bb 100755 --- a/automated/linux/ltp/ltp.sh +++ b/automated/linux/ltp/ltp.sh @@ -3,6 +3,7 @@ . ../../lib/sh-test-lib OUTPUT="$(pwd)/output" RESULT_FILE="${OUTPUT}/result.txt" +RESULT_FILE_2="${OUTPUT}/result-2.txt" # Absolute path to this script. /home/user/bin/foo.sh SCRIPT="$(readlink -f $0)" # Absolute path this script is in. /home/user/bin diff --git a/automated/linux/ltp/ltp.yaml b/automated/linux/ltp/ltp.yaml index f48d4f3..0173623 100644 --- a/automated/linux/ltp/ltp.yaml +++ b/automated/linux/ltp/ltp.yaml @@ -35,6 +35,10 @@ run: - cd ./automated/linux/ltp/ - ./ltp.sh -T "${TST_CMDFILES}" -S "${SKIPFILE}" -s "${SKIP_INSTALL}" -v "${LTP_VERSION}" - ../../utils/send-to-lava.sh ./output/result.txt + - ../../utils/send-to-lava.sh ./output/result-2.txt + - cat ./output/result.txt + - cat ./output/result-2.txt + parse: pattern: "^(?!.+ED)(?P<test_case_id>\\w+)\\s+(?P<result>PASS|FAIL|CONF)\\s+\\d+" |