]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Allow setting a rootwrap cmd for functional tests
authorMaru Newby <marun@redhat.com>
Wed, 2 Jul 2014 00:02:08 +0000 (00:02 +0000)
committerMaru Newby <marun@redhat.com>
Wed, 2 Jul 2014 00:02:08 +0000 (00:02 +0000)
commit798824cab0322d9de82594dbbdb6c4ead0e1cb2f
tree5346c2bd18d9dde7c388b60b77abcb615e2b1cc8
parentfc91e158f202112ae5cc576ad3e3fa0f89deff1e
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: I3b8f6b4f14ac1743e08b9401f73951885165350a
Partial-bug: #1336172
neutron/tests/functional/agent/linux/base.py
neutron/tests/functional/agent/linux/test_ovsdb_monitor.py
neutron/tests/functional/base.py [new file with mode: 0644]
neutron/tests/functional/sanity/test_sanity.py