Merge "Run neutron functional job as tempest user"

This commit is contained in:
Jenkins 2014-03-20 00:55:09 +00:00 committed by Gerrit Code Review
commit 8fae0bcccd

View File

@ -24,10 +24,13 @@
fi fi
function post_test_hook {{ function post_test_hook {{
/opt/stack/new/devstack/unstack.sh $BASE/new/devstack/unstack.sh
export OS_SUDO_TESTING=1 export OS_SUDO_TESTING=1
cd /opt/stack/new/neutron cd $BASE/new/neutron
tox -e functional # Run tests as the stack user to allow sudo.
sudo chown -R stack:stack $BASE/new/neutron
echo "Running neutron functional test suite"
sudo -H -u stack tox -e functional
}} }}
export -f post_test_hook export -f post_test_hook
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh