summaryrefslogtreecommitdiff
path: root/automated/linux/ltp/ltp.sh
diff options
context:
space:
mode:
Diffstat (limited to 'automated/linux/ltp/ltp.sh')
-rwxr-xr-xautomated/linux/ltp/ltp.sh18
1 files changed, 7 insertions, 11 deletions
diff --git a/automated/linux/ltp/ltp.sh b/automated/linux/ltp/ltp.sh
index 89b2534..c3af0df 100755
--- a/automated/linux/ltp/ltp.sh
+++ b/automated/linux/ltp/ltp.sh
@@ -15,7 +15,7 @@ TST_CMDFILES=""
SKIPFILE=""
# LTP version
LTP_VERSION="20170516"
-LTP_TMPDIR=""
+LTP_TMPDIR=$(mktemp -d ${HOME}/ltp.tmp.XXXX)
LTP_PATH=/opt/ltp
@@ -24,12 +24,11 @@ usage() {
[-S skipfile-lsk-juno]
[-s True|False]
[-v LTP_VERSION]
- [-M Timeout_Multiplier]
- [-d LTP_TMPDIR] " 1>&2
+ [-M Timeout_Multiplier]" 1>&2
exit 0
}
-while getopts "M:T:S:s:v:d:" arg; do
+while getopts "M:T:S:s:v:" arg; do
case "$arg" in
T)
TST_CMDFILES="${OPTARG}"
@@ -54,11 +53,6 @@ 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}"
- ;;
esac
done
@@ -89,11 +83,13 @@ run_ltp() {
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"
+ -d ${LTP_TMPDIR} \
+ ${SKIPFILE}" "tee ${OUTPUT}/LTP_${LOG_FILE}.out"
check_return "runltp_${LOG_FILE}"
parse_ltp_output "${OUTPUT}/LTP_${LOG_FILE}.log"
+ # Cleanup
+ rm -rf ${LTP_TMPDIR}
}
# Test run.