diff options
author | Naresh Kamboju <naresh.kamboju@linaro.org> | 2016-09-30 05:37:48 +0530 |
---|---|---|
committer | Naresh Kamboju <naresh.kamboju@linaro.org> | 2016-09-30 05:37:48 +0530 |
commit | 1aa5d3df94a808ef514ad7d943dde9fdcb65cc80 (patch) | |
tree | 53faac17a3366b7ed6a4467311d96b6f04b17b56 | |
parent | 3aaeae2c64d9373b69bbc777246f4bad2a09c511 (diff) |
Signed-off-by: Naresh Kamboju <naresh.kamboju@linaro.org>
-rwxr-xr-x | automated/linux/ltp/ltp.sh | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/automated/linux/ltp/ltp.sh b/automated/linux/ltp/ltp.sh index 393b930..e72d6a3 100755 --- a/automated/linux/ltp/ltp.sh +++ b/automated/linux/ltp/ltp.sh @@ -69,7 +69,7 @@ parse_ltp_summary() { # Parse LTP output parse_ltp_output() { - egrep "PASS|FAIL|CONF" "$1" | awk '{print $1" "$2}' | sed s/CONF/SKIP/ > "${RESULT_FILE}" + egrep "PASS|FAIL|CONF" "$1" | awk '{print $1" "$2}' | sed s/CONF/SKIP/ >> "${RESULT_FILE}" } # Run LTP test suite @@ -78,15 +78,15 @@ run_ltp() { exec 4>&1 error_statuses="$(((./runltp -p -q -f "${TST_CMDFILES}" \ - -l "${SCRIPTPATH}"/LTP_"${LOG_FILE}".log \ - -C "$SCRIPTPATH"/LTP_"${LOG_FILE}".failed "${SKIPFILE}" \ - || echo "0:$?" >&3) | (tee "${SCRIPTPATH}"/LTP_"${LOG_FILE}".out \ + -l "${OUTPUT}/LTP_${LOG_FILE}.log" \ + -C "${OUTPUT}/LTP_${LOG_FILE}.failed" "${SKIPFILE}" \ + || echo "0:$?" >&3) | (tee "${OUTPUT}/LTP_${LOG_FILE}.out" \ || echo "1:$?" >&3)) 3>&1 >&4)" exec 4>&- echo "${error_statuses}" - parse_ltp_summary "${SCRIPTPATH}"/LTP_"${LOG_FILE}".log - parse_ltp_output "${SCRIPTPATH}"/LTP_"${LOG_FILE}".log + parse_ltp_summary "${OUTPUT}/LTP_${LOG_FILE}.log" + parse_ltp_output "${OUTPUT}/LTP_${LOG_FILE}.log" } # Test run. |