diff options
-rwxr-xr-x | common/scripts/ltpfixup.sh | 7 | ||||
-rw-r--r-- | ubuntu/ltp.yaml | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/common/scripts/ltpfixup.sh b/common/scripts/ltpfixup.sh index baaba78..3fec48f 100755 --- a/common/scripts/ltpfixup.sh +++ b/common/scripts/ltpfixup.sh @@ -6,7 +6,12 @@ SCRIPT=$(readlink -f $0) SCRIPTPATH=`dirname $SCRIPT` echo "Script path is: $SCRIPTPATH" -cd /opt/ltp +LTP_PATH=/opt/ltp +# Second parameter is used as a path to LTP installation +if [ "$#" -gt 1 ]; then + LTP_PATH=$2 +fi +cd $LTP_PATH ./runltp -p -q -f $1 -l $SCRIPTPATH/LTP_$1.log -C $SCRIPTPATH/LTP_$1.failed | tee $SCRIPTPATH/LTP_$1.out find $SCRIPTPATH -name "LTP_$1.log" -print0 |xargs -0 cat tar czfv $SCRIPTPATH/LTP_$1.tar.gz $SCRIPTPATH/LTP* diff --git a/ubuntu/ltp.yaml b/ubuntu/ltp.yaml index 78e681f..40f35df 100644 --- a/ubuntu/ltp.yaml +++ b/ubuntu/ltp.yaml @@ -36,7 +36,7 @@ params: run: steps: - - './common/scripts/ltpfixup.sh $TST_CMDFILES' + - './common/scripts/ltpfixup.sh $TST_CMDFILES $(readlink -f build)' parse: pattern: "^(?!.+ED)(?P<test_case_id>\\w+)\\s+(?P<result>\\w+)\\s+\\d$" |