diff --git a/modules/openstack_project/files/jenkins_job_builder/config/neutron-functional.yaml b/modules/openstack_project/files/jenkins_job_builder/config/neutron-functional.yaml index 7d40546eee..142d9f57e2 100644 --- a/modules/openstack_project/files/jenkins_job_builder/config/neutron-functional.yaml +++ b/modules/openstack_project/files/jenkins_job_builder/config/neutron-functional.yaml @@ -25,11 +25,12 @@ 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 OS_SUDO_TESTING=1 tox -e functional + sudo -H -u stack tox -e functional }} export -f post_test_hook cp devstack-gate/devstack-vm-gate-wrap.sh ./safe-devstack-vm-gate-wrap.sh