X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=jjb%2Fkvmfornfv%2Fkvmfornfv-test.sh;h=b31d61cce94b94dcf5a14bd6cb75f901e3ec967c;hb=c8e2e16478a2b3deb06bb0182fda0ba3c03f1e80;hp=868de13bd6f76a26e26cdd3d4c74835907c94345;hpb=912a8810e8c04bbe8488ebe4121ada643bd41e91;p=releng.git diff --git a/jjb/kvmfornfv/kvmfornfv-test.sh b/jjb/kvmfornfv/kvmfornfv-test.sh index 868de13bd..b31d61cce 100755 --- a/jjb/kvmfornfv/kvmfornfv-test.sh +++ b/jjb/kvmfornfv/kvmfornfv-test.sh @@ -3,8 +3,31 @@ ##This script includes executing cyclictest scripts. ########################################################## #The latest build packages are stored in build_output + ls -al $WORKSPACE/build_output -#start the test -cd $WORKSPACE -./ci/test_kvmfornfv.sh +if [[ "$JOB_NAME" =~ (verify|merge|daily|weekly) ]]; then + JOB_TYPE=${BASH_REMATCH[0]} +else + echo "Unable to determine job type!" + exit 1 +fi + +echo $TEST_NAME + +# do stuff differently based on the job type +case "$JOB_TYPE" in + verify) + #start the test + cd $WORKSPACE + ./ci/test_kvmfornfv.sh $JOB_TYPE + ;; + daily) + #start the test + cd $WORKSPACE + ./ci/test_kvmfornfv.sh $JOB_TYPE $TEST_NAME + ;; + *) + echo "Test is not enabled for $JOB_TYPE jobs" + exit 1 +esac