X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/e2f03263c7c2496ff3ee84e43eb133fe171905f9..5c4d9d38dcee73a7ffb6221c80f707c3924da64f:/build/run-tests.sh diff --git a/build/run-tests.sh b/build/run-tests.sh index 52269fd6e1..636c0306ca 100755 --- a/build/run-tests.sh +++ b/build/run-tests.sh @@ -413,6 +413,8 @@ do fi done +rm -vf "${WORKSPACE}/tmp/*.log" + setup_ruby_environment() { if [[ -s "$HOME/.rvm/scripts/rvm" ]] ; then source "$HOME/.rvm/scripts/rvm" @@ -614,6 +616,12 @@ then gem install --user-install bundler || fatal 'Could not install bundler' fi +# Jenkins config requires that glob tmp/*.log match something. Ensure +# that happens even if we don't end up running services that set up +# logging. +mkdir -p "${WORKSPACE}/tmp/" || fatal "could not mkdir ${WORKSPACE}/tmp" +touch "${WORKSPACE}/tmp/controller.log" || fatal "could not touch ${WORKSPACE}/tmp/controller.log" + retry() { remain="${repeat}" while : @@ -650,8 +658,9 @@ do_test() { ;; esac if [[ -z "${skip[$suite]}" && -z "${skip[$1]}" && \ - (-z "${only}" || "${only}" == "${suite}" || \ - "${only}" == "${1}") ]]; then + (-z "${only}" || "${only}" == "${suite}" || \ + "${only}" == "${1}") || + "${only}" == "${2}" ]]; then retry do_test_once ${@} else title "Skipping ${1} tests"