Fix neutron func job to use gate-specific tox env
The neutron tox config now has a gate-specific tox env (tox -e dsvm-functional) that configures the environment variables necessary to run tests that require the use of sudo+rootwrap. Change-Id: I25b50e3c0ddb8714387e0e3902c237a0a41a3443 Closes-bug: #1336172
This commit is contained in:
parent
7d33e05d67
commit
13084694be
@ -26,14 +26,11 @@
|
||||
|
||||
function post_test_hook {{
|
||||
$BASE/new/devstack/unstack.sh
|
||||
# TODO(HenryG): this isn't actually passed through sudo
|
||||
export OS_SUDO_TESTING=1
|
||||
cd $BASE/new/neutron
|
||||
# Run tests as the stack user to allow sudo.
|
||||
# Run tests as the stack user to allow sudo+rootwrap.
|
||||
sudo chown -R stack:stack $BASE/new/neutron
|
||||
echo 'Defaults:stack !requiretty' | sudo tee /etc/sudoers.d/00_no_tty
|
||||
echo "Running neutron functional test suite"
|
||||
sudo -H -u stack tox -e functional
|
||||
sudo -H -u stack tox -e dsvm-functional
|
||||
}}
|
||||
export -f post_test_hook
|
||||
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh
|
||||
|
Loading…
x
Reference in New Issue
Block a user