From 6e9847a7446013431d1bf8b316359a20177a4c5a Mon Sep 17 00:00:00 2001 From: Naresh Kamboju Date: Thu, 6 Jul 2017 17:18:33 +0530 Subject: ltp.sh: runltp update args Signed-off-by: Naresh Kamboju --- automated/linux/ltp/ltp.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/automated/linux/ltp/ltp.sh b/automated/linux/ltp/ltp.sh index 49f4a36..89b2534 100755 --- a/automated/linux/ltp/ltp.sh +++ b/automated/linux/ltp/ltp.sh @@ -20,7 +20,12 @@ LTP_TMPDIR="" LTP_PATH=/opt/ltp usage() { - echo "Usage: ${0} [-T mm,math,syscalls] [-S skipfile-lsk-juno] [-s ] [-v LTP_VERSION] [-M Timeout_Multiplier] [-d LTP_TMPDIR]" 1>&2 + echo "Usage: ${0} [-T mm,math,syscalls] + [-S skipfile-lsk-juno] + [-s True|False] + [-v LTP_VERSION] + [-M Timeout_Multiplier] + [-d LTP_TMPDIR] " 1>&2 exit 0 } @@ -49,6 +54,7 @@ while getopts "M:T:S:s:v:d:" arg; do v) LTP_VERSION="${OPTARG}";; # Slow machines need more timeout Default is 5min and multiply * MINUTES M) export LTP_TIMEOUT_MUL="${OPTARG}";; + # LTP_TMPDIR is needed case of OE builds where /tmp is mounted as tmpfs d) mkdir -p "${OPTARG}" LTP_TMPDIR="-d ${OPTARG}" @@ -80,7 +86,11 @@ run_ltp() { # shellcheck disable=SC2164 cd "${LTP_PATH}" - pipe0_status "./runltp -p -q -f ${TST_CMDFILES} -l ${OUTPUT}/LTP_${LOG_FILE}.log -C ${OUTPUT}/LTP_${LOG_FILE}.failed ${SKIPFILE} ${LTP_TMPDIR}" "tee ${OUTPUT}/LTP_${LOG_FILE}.out" + pipe0_status "./runltp -p -q -f ${TST_CMDFILES} \ + -l ${OUTPUT}/LTP_${LOG_FILE}.log \ + -C ${OUTPUT}/LTP_${LOG_FILE}.failed \ + ${SKIPFILE} \ + ${LTP_TMPDIR}" "tee ${OUTPUT}/LTP_${LOG_FILE}.out" check_return "runltp_${LOG_FILE}" parse_ltp_output "${OUTPUT}/LTP_${LOG_FILE}.log" -- cgit v1.2.3