Previously, sudo-requiring functional tests hardcoded the use of
'sudo' as the root helper. Devstack gate jobs do not allow
password-less invocation of 'sudo', though, so such tests were unable
to run in the gate. This patch adds the ability to configure the
rootwrap command installed by devstack by setting the OS_ROOTWRAP_CMD
environment variable in the test execution environment, allowing
sudo-requiring tests to run.
Reviewed: https:/ /review. openstack. org/104029 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=798824cab03 22d9de82594dbbd b6c4ead0e1cb2f
Committed: https:/
Submitter: Jenkins
Branch: master
commit 798824cab0322d9 de82594dbbdb6c4 ead0e1cb2f
Author: Maru Newby <email address hidden>
Date: Wed Jul 2 00:02:08 2014 +0000
Allow setting a rootwrap cmd for functional tests
Previously, sudo-requiring functional tests hardcoded the use of
'sudo' as the root helper. Devstack gate jobs do not allow
password-less invocation of 'sudo', though, so such tests were unable
to run in the gate. This patch adds the ability to configure the
rootwrap command installed by devstack by setting the OS_ROOTWRAP_CMD
environment variable in the test execution environment, allowing
sudo-requiring tests to run.
Change-Id: I3b8f6b4f14ac17 43e08b9401f7395 1885165350a
Partial-bug: #1336172