Skip to content

Commit

Permalink
Pass option for test_only properly (strimzi#4579)
Browse files Browse the repository at this point in the history
* Pass option for test_only properly

Signed-off-by: Jakub Stejskal <xstejs24@gmail.com>

* fixup! Pass option for test_only properly

Signed-off-by: Jakub Stejskal <xstejs24@gmail.com>

* fixup! fixup! Pass option for test_only properly

Signed-off-by: Jakub Stejskal <xstejs24@gmail.com>
  • Loading branch information
Frawless authored Mar 16, 2021
1 parent 3068ff4 commit e5f9481
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .jenkins/Jenkinsfile-pr
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ pipeline {
}
println("EXCLUDE_GROUPS: ${env.EXCLUDE_GROUPS}")
if (env.ghprbCommentBody.contains('test_only')) {
env.TEST_ONLY = true
env.TEST_ONLY = "true"
env.DOCKER_REGISTRY = "quay.io"
env.DOCKER_ORG="strimzi"
env.DOCKER_TAG = "latest"
} else {
env.TEST_ONLY = false
env.TEST_ONLY = "false"
env.DOCKER_ORG="strimzi"
env.DOCKER_REGISTRY = "172.30.1.1:5000"
env.DOCKER_TAG="pr"
Expand Down
6 changes: 6 additions & 0 deletions systemtest/scripts/results_info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@ FAILED_TESTS=$(find "${RESULTS_PATH}" -name 'TEST*.xml' -type f -print0 | xargs
echo ${FAILED_TESTS}
echo "Creating body ..."

if [[ ${TEST_ONLY} == "true" ]]; then
TEST_ONLY="test_only"
else
TEST_ONLY=""
fi

TMP_FAILED_TESTS=$(find "${RESULTS_PATH}" -name 'TEST*.xml' -type f -print0 | xargs -0 sed -n "s#\(<testcase.*time=\"[0-9]*,\{0,1\}[0-9]\{1,3\}\..*[^\/]>\)#\1#p" | awk -F '"' '{ if($2 != "") {print $4 "#" $2} else { print $4 }}')
COMMAND="@strimzi-ci run tests ${TEST_ONLY} profile=${TEST_PROFILE} testcase="

Expand Down

0 comments on commit e5f9481

Please sign in to comment.