summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNaresh Kamboju <naresh.kamboju@linaro.org>2017-05-24 14:46:37 +0530
committerNaresh Kamboju <naresh.kamboju@linaro.org>2017-05-24 14:46:37 +0530
commitbdbdd0035219960ec1ab25a40a44884379e926b4 (patch)
tree856642563065c0a4705118e4c56e5610c228faaf
parent48f4a4a692724719024ef49addf518333a732356 (diff)
automated: linux: ltp: increase timeout for slow machinesHEADmaster
LTP test cases msgget01/02/03 got timeout after 300 sec. The default timeout is 300 increase to 600 sec for slow machines. This patch will fix below error. Error log: ---------- tst_test.c:760: INFO: Timeout per run is 0h 05m 00s tst_test.c:809: INFO: If you are running on slow machine, try exporting LTP_TIMEOUT_MUL > 1 tst_test.c:810: BROK: Test killed! (timeout?) Signed-off-by: Naresh Kamboju <naresh.kamboju@linaro.org>
-rwxr-xr-xautomated/linux/ltp/ltp.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/automated/linux/ltp/ltp.sh b/automated/linux/ltp/ltp.sh
index 47b087e..4ff5b4e 100755
--- a/automated/linux/ltp/ltp.sh
+++ b/automated/linux/ltp/ltp.sh
@@ -72,6 +72,9 @@ run_ltp() {
# shellcheck disable=SC2164
cd "${LTP_PATH}"
+ # Slow machines need more timeout Default is 300 increasing 600
+ export LTP_TIMEOUT_MUL=600
+
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"
check_return "runltp_${LOG_FILE}"