From 9c2072f525961711899cff45885ef06767184e26 Mon Sep 17 00:00:00 2001 From: Clark Boylan Date: Mon, 8 Apr 2013 11:30:30 -0700 Subject: [PATCH] Remove global python-subunit install. The global python-subunit install that was used for subunit log processing is interfering with the version desired for nova because nova enabled sitepackages. Remove the global install and use the local virtualenv install of python-subunit to process subunit logs. This ensures compatibility with testrepository and the subunit logs themselves. Change-Id: Id634b7f96bcdb594242c0ae5734f77a9fdf5425c Reviewed-on: https://review.openstack.org/26396 Reviewed-by: Jeremy Stanley Approved: Monty Taylor Reviewed-by: Monty Taylor Tested-by: Jenkins --- modules/jenkins/files/slave_scripts/run-tox.sh | 2 +- modules/jenkins/manifests/slave.pp | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/modules/jenkins/files/slave_scripts/run-tox.sh b/modules/jenkins/files/slave_scripts/run-tox.sh index 1bb2e05d70..6909c37d6c 100755 --- a/modules/jenkins/files/slave_scripts/run-tox.sh +++ b/modules/jenkins/files/slave_scripts/run-tox.sh @@ -51,7 +51,7 @@ echo "======================================================================" if [ -f ".testrepository/0" ] then cp .testrepository/0 ./subunit_log.txt - /usr/local/jenkins/slave_scripts/subunit2html.py ./subunit_log.txt testr_results.html + .tox/$venv/bin/python /usr/local/jenkins/slave_scripts/subunit2html.py ./subunit_log.txt testr_results.html gzip -9 ./subunit_log.txt gzip -9 ./testr_results.html fi diff --git a/modules/jenkins/manifests/slave.pp b/modules/jenkins/manifests/slave.pp index 18ca0ec438..95e7197100 100644 --- a/modules/jenkins/manifests/slave.pp +++ b/modules/jenkins/manifests/slave.pp @@ -107,7 +107,6 @@ class jenkins::slave( # Packages that need to be installed from pip $pip_packages = [ - 'python-subunit', 'setuptools-git', 'tox', ] @@ -118,6 +117,12 @@ class jenkins::slave( require => Class[pip], } + package { 'python-subunit': + ensure => absent, + provider => pip, + require => Class[pip], + } + package { 'git-review': ensure => '1.17', provider => pip,