diff options
author | Naresh Kamboju <naresh.kamboju@linaro.org> | 2015-03-04 17:36:19 +0530 |
---|---|---|
committer | Milosz Wasilewski <milosz.wasilewski@linaro.org> | 2015-03-09 18:04:52 +0000 |
commit | 68732109acede81d6e70fa915cb1b8a933951506 (patch) | |
tree | 003971cac56bc4895410cd8e5a1e5a045e3aeaa5 /common | |
parent | 1e716d49c7c898f46273bfa83f0ae0281a568fe0 (diff) |
LTP : ltpfixup: skipfile can be an URL from json
ltp test definitions have been updated to accept skipfile from an
open accessible location via URL as a parameter from LAVA json job file
and still supports old implementation as a file from test-definitions
NOTE: busybox wget may not work with https link so pefer to use http
Change-Id: Idf9b93799326e4fc6650bded8396b15a48c63f3b
Signed-off-by: Naresh Kamboju <naresh.kamboju@linaro.org>
Diffstat (limited to 'common')
-rwxr-xr-x | common/scripts/ltpfixup.sh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/common/scripts/ltpfixup.sh b/common/scripts/ltpfixup.sh index 2d45877..b72ddc3 100755 --- a/common/scripts/ltpfixup.sh +++ b/common/scripts/ltpfixup.sh @@ -15,7 +15,16 @@ LTP_PATH=/opt/ltp while getopts T:S:P: arg do case $arg in T) TST_CMDFILES="$OPTARG";; - S) SKIPFILE="-S $SCRIPTPATH/ltp/$OPTARG";; + S) OPT=`echo $OPTARG | grep "http"` + if [ -z $OPT ] ; then + SKIPFILE="-S $SCRIPTPATH/ltp/$OPTARG" + else + #wget http://people.linaro.org/~naresh.kamboju/skipfile + wget $OPTARG + SKIPFILE=`echo "${OPTARG##*/}"` + SKIPFILE="-S `pwd`/$SKIPFILE" + fi + ;; P) LTP_PATH=$OPTARG;; esac done |