diff options
author | Naresh Kamboju <naresh.kamboju@linaro.org> | 2017-07-06 16:56:59 +0530 |
---|---|---|
committer | Fathi Boudra <fathi.boudra@linaro.org> | 2017-07-07 07:17:06 +0000 |
commit | 3a42795ea49f45fb35ac99211cd361e4a5ff4c1a (patch) | |
tree | a665388028eb73bf54fe5ef945de26a6e8d749a4 | |
parent | 56889f4a6ca063f278c6ac392c8b4cd6c7e59d4f (diff) |
linux: ltp: create temporary directory
Create LTP temporary files under $(mktemp -d ${HOME}/ltp.tmp.XXXX)
directory. This will fix readahead02 test failure so stop skipping it.
with reference to bug,
LTP: readahead02: readahead failed to save any I/O
https://bugs.linaro.org/show_bug.cgi?id=2961
Change-Id: Ic923234332d1a8782118ed4560f9c9eb8c4c2308
Signed-off-by: Naresh Kamboju <naresh.kamboju@linaro.org>
-rwxr-xr-x | automated/linux/ltp/ltp.sh | 15 | ||||
-rw-r--r-- | automated/linux/ltp/skipfile-lkft-hikey | 3 |
2 files changed, 13 insertions, 5 deletions
diff --git a/automated/linux/ltp/ltp.sh b/automated/linux/ltp/ltp.sh index 521f228..4f70a35 100755 --- a/automated/linux/ltp/ltp.sh +++ b/automated/linux/ltp/ltp.sh @@ -15,11 +15,16 @@ TST_CMDFILES="" SKIPFILE="" # LTP version LTP_VERSION="20170516" +LTP_TMPDIR=$(mktemp -d ${HOME}/ltp-tmp.XXXX) LTP_PATH=/opt/ltp usage() { - echo "Usage: ${0} [-T mm,math,syscalls] [-S skipfile-lsk-juno] [-s <flase>] [-v LTP_VERSION] [-M Timeout_Multiplier]" 1>&2 + echo "Usage: ${0} [-T mm,math,syscalls] + [-S skipfile-lsk-juno] + [-s True|False] + [-v LTP_VERSION] + [-M Timeout_Multiplier]" 1>&2 exit 0 } @@ -75,10 +80,16 @@ 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}" "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 \ + -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. diff --git a/automated/linux/ltp/skipfile-lkft-hikey b/automated/linux/ltp/skipfile-lkft-hikey index 2172b35..bcca45c 100644 --- a/automated/linux/ltp/skipfile-lkft-hikey +++ b/automated/linux/ltp/skipfile-lkft-hikey @@ -17,9 +17,6 @@ fork13 fork13 -i 1000000 # https://bugs.linaro.org/show_bug.cgi?id=2355 msgctl10 msgctl10 msgctl11 msgctl11 -# LTP: readahead02: readahead failed to save any I/O -# https://bugs.linaro.org/show_bug.cgi?id=2961 -readahead02 readahead02 sysfs01 sysfs01 sysfs02 sysfs02 |