X-Git-Url: https://git.arvados.org/arvados-dev.git/blobdiff_plain/303a6e2ad510ea2a4c36e7bc2b7ce789ce0b0a7a..626ea7dba17faa4106fcd317aa7e277e9ec5227f:/jenkins/run-tests.sh diff --git a/jenkins/run-tests.sh b/jenkins/run-tests.sh index 150247c..1a699a8 100755 --- a/jenkins/run-tests.sh +++ b/jenkins/run-tests.sh @@ -135,6 +135,7 @@ report_outcomes() { exit_cleanly() { trap - INT + create-plot-data-from-log.sh $BUILD_NUMBER "$WORKSPACE/apps/workbench/log/test.log" "$WORKSPACE/apps/workbench/log/" rotate_logfile "$WORKSPACE/apps/workbench/log/" "test.log" stop_services rotate_logfile "$WORKSPACE/services/api/log/" "test.log" @@ -168,6 +169,7 @@ sanity_checks() { } rotate_logfile() { + # i.e. rotate_logfile "$WORKSPACE/apps/workbench/log/" "test.log" # $BUILD_NUMBER is set by Jenkins if this script is being called as part of a Jenkins run if [[ -f "$1/$2" ]]; then THEDATE=`date +%Y%m%d%H%M%S` @@ -368,10 +370,6 @@ ln -sfn "$WORKSPACE" "$GOPATH/src/git.curoverse.com/arvados.git" \ virtualenv --setuptools "$VENVDIR" || fatal "virtualenv $VENVDIR failed" . "$VENVDIR/bin/activate" -# When re-using $VENVDIR, upgrade any packages (except arvados) that are -# already installed -pip install --quiet --upgrade `pip freeze | grep -v arvados | cut -f1 -d=` - # Note: this must be the last time we change PATH, otherwise rvm will # whine a lot. setup_ruby_environment @@ -384,8 +382,9 @@ then fi # Needed for run_test_server.py which is used by certain (non-Python) tests. -echo "pip install -q PyYAML" -pip install --quiet PyYAML || fatal "pip install PyYAML failed" +pip freeze 2>/dev/null | egrep ^PyYAML= \ + || pip install PyYAML \ + || fatal "pip install PyYAML failed" # If Python 3 is available, set up its virtualenv in $VENV3DIR. # Otherwise, skip dependent tests.