]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Update tox.ini to support RHEL 6.x.
authorDan Prince <dprince@redhat.com>
Thu, 7 Mar 2013 17:41:30 +0000 (12:41 -0500)
committerDan Prince <dprince@redhat.com>
Fri, 8 Mar 2013 13:52:25 +0000 (08:52 -0500)
commit33c3cc559cddc9a4f1c5be502e0f83de140cad44
treede722e7e6bd517d6a3445186c8212a35bbd8fc09
parentbbbfdfe653fc5aaa201ab2da30b02f4245d9bbeb
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
contrib/redhat-eventlet.patch [new file with mode: 0644]
tools/install_venv_common.py
tools/patch_tox_venv.py [new file with mode: 0644]
tox.ini