]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Update tox.ini to support RHEL 6.x.
authorDan Prince <dprince@redhat.com>
Thu, 7 Mar 2013 18:07:56 +0000 (13:07 -0500)
committerDan Prince <dprince@redhat.com>
Fri, 8 Mar 2013 13:56:48 +0000 (08:56 -0500)
commitcb904d0d4c121ad2cee85960e2a4338cadba2ba9
tree601e214f56fa63eab332cb236116e91e30492a30
parent42a4aae9f83414cfae8626f031d0fdf83efc38e7
Update tox.ini to support RHEL 6.x.

In order to support running unit tests on RHEL 6.x we need to patch
eventlet with contrib/redhat-eventlet.patch. We already
have support for this in the tools/install_venv_common.py but we
need to make a couple changes to allow tox to consume this:

1) Sync in the latest intall_venv_common.py from oslo. This changes
 patch to use the -N option (ignore already applied patches) and
 makes it safe to call the patching function more than once.

2) Add a new patch_tox_venv.py script in tools.

3) Update tox.ini to call patch_tox_venv.py before it runs tests and
 coverage.

NOTE: This will hopefully go away eventually once this patch lands:

 https://bitbucket.org/eventlet/eventlet/issue/89/add-a-timeout-argument-to-subprocesspopen#comment-3342969

Change-Id: I3e2b07c3f718e4aede5c5f231ff0cdb7721ec885
tools/install_venv_common.py
tools/patch_tox_venv.py [new file with mode: 0644]
tox.ini