Create an os-testr venv for running subunit2html
This commit creates a venv for installing os-testr which will enable all test jobs to have access to the subunit2html utility which has been moved to live inside the os-testr package instead of as a slave script. Change-Id: I2050b54eb2def10438764f3eeb55ecf9caa874dc
This commit is contained in:
parent
5c484a5c96
commit
76d164b1ba
19
nodepool/elements/nodepool-base/install.d/91-venv-os-testr
Executable file
19
nodepool/elements/nodepool-base/install.d/91-venv-os-testr
Executable file
@ -0,0 +1,19 @@
|
||||
#!/bin/bash -xe
|
||||
# Copyright (c) 2015 Hewlett-Packard Development Company, L.P.
|
||||
#
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
# implied.
|
||||
|
||||
# Create a virtualenv for os-testr (which contains subunit2html)
|
||||
# This is in /usr instead of /usr/local due to this bug on precise:
|
||||
# https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/839588
|
||||
sudo -H virtualenv /usr/os-testr-env
|
||||
sudo -H /usr/os-testr-env/bin/pip install os-testr
|
@ -246,5 +246,11 @@ sudo -H virtualenv /usr/zuul-swift-logs-env
|
||||
sudo -H /usr/zuul-swift-logs-env/bin/pip install python-magic argparse \
|
||||
requests glob2
|
||||
|
||||
# Create a virtualenv for os-testr (which contains subunit2html)
|
||||
# this is in /usr instead of /usr/loca/ due to this bug on precise:
|
||||
# https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/839588
|
||||
sudo -H virtualenv /usr/os-testr-env
|
||||
sudo -H /usr/os-testr-env/bin/pip install os-testr
|
||||
|
||||
sync
|
||||
sleep 5
|
||||
|
Loading…
Reference in New Issue
Block a user