Proper passing of SUDO flag for neutron functional tests

Change-Id: I22d7e9ef8a75b5d469e0b5e9aeed4c25aebfd1a3
This commit is contained in:
Henry Gessau 2014-06-27 13:12:41 -04:00
parent f45f0f57ab
commit 2aeade43c3

View File

@ -25,12 +25,11 @@
function post_test_hook {{
$BASE/new/devstack/unstack.sh
export OS_SUDO_TESTING=1
cd $BASE/new/neutron
# 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
sudo -H -u stack OS_SUDO_TESTING=1 tox -e functional
}}
export -f post_test_hook
cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh