Jenkins uses wrapper jenkins_docker_run which will mask exit code anyway and this is what we want currently: we need always zero exit code here on Jenkins. Jenkins will detect errors in produced artifacts (XML files) if any as a result the Jenkins job will be "yellow" instead of "red". Change-Id: I249fcde9103ee25e6798fcb835ee4a408f8f0f57changes/68/28768/3
parent
7282fa65b5
commit
f0e1f74fc6
@ -1,4 +1,12 @@
|
||||
#!/bin/bash
|
||||
# This script is used for running the tests with
|
||||
# proper arguments from Jenkins under user 'selenium'
|
||||
su - selenium -c "cd /code && ./t/selenium/testrunner $*"
|
||||
|
||||
set -e
|
||||
|
||||
su - selenium -c "cd /code && ./t/selenium/testrunner $*" || RC=$?
|
||||
|
||||
## Jenkins will detect errors in produced artifacts if any
|
||||
## as a result the Jenkins job will be "yellow" instead of "red".
|
||||
[ -n "${RC}" ] && echo "Masking non-zero exit code '${RC}'"
|
||||
exit 0 # ${RC:-0}
|
||||
|
||||
Loading…
Reference in new issue