X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=jjb%2Fcsit%2Finclude-raw-csit-vpp-perf-verify.sh;h=ded4ceee01441eec077693e08d323a5e1c759d82;hb=6baece1aa46181bb3021dd896f934c7e753ef234;hp=e7d426fe39b4ae332a0da344d5bc9cbd34aa8432;hpb=c25152f695e362be60d6f5ec72be489672c9f706;p=ci-management.git diff --git a/jjb/csit/include-raw-csit-vpp-perf-verify.sh b/jjb/csit/include-raw-csit-vpp-perf-verify.sh index e7d426fe3..ded4ceee0 100644 --- a/jjb/csit/include-raw-csit-vpp-perf-verify.sh +++ b/jjb/csit/include-raw-csit-vpp-perf-verify.sh @@ -1,9 +1,17 @@ #!/bin/bash -TRIGGER=`echo ${GERRIT_EVENT_COMMENT_TEXT} \ - | grep -oE 'verify-perf-(l2|ip4|ip6|lisp|vxlan|vhost|memif|ipsechw)' \ - | awk '{print toupper($0)}'` -export TEST_TAG=${TRIGGER} +set -xeu -o pipefail + +if [[ ${GERRIT_EVENT_TYPE} == 'comment-added' ]]; then + TRIGGER=`echo ${GERRIT_EVENT_COMMENT_TEXT} \ + | grep -oE '(perftest$|perftest[[:space:]].+$)'` +else + TRIGGER='' +fi +# Export test type. +export TEST_TAG="VERIFY-PERF-PATCH" +# Export test tags as string. +export TEST_TAG_STRING=${TRIGGER#$"perftest"} # execute csit bootstrap script if it exists if [ ! -e bootstrap-verify-perf.sh ]