Proper passing of SUDO flag for neutron functional tests
Change-Id: I22d7e9ef8a75b5d469e0b5e9aeed4c25aebfd1a3
This commit is contained in:
parent
f45f0f57ab
commit
2aeade43c3
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user