]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Make plugin deallocation check optional
authorMaru Newby <marun@redhat.com>
Fri, 9 May 2014 22:24:45 +0000 (22:24 +0000)
committerMaru Newby <marun@redhat.com>
Fri, 9 May 2014 22:24:45 +0000 (22:24 +0000)
commitee5c3b0bb60918a7e59e89ceffbafa2f683b74fd
tree74c48d5bb452dccdef64aaac6ad15ca4abe3855c
parent3133c7340ec1bc7906bf09a6e114602bcfcdd590
Make plugin deallocation check optional

The fix for memory leakage in the related bug added a check for plugin
deallocation that performed a call to gc.collect() after every test.
This had the side-effect of increasing test execution time by ~50%, so
this patch makes the check optional via an environment variable
(OS_CHECK_PLUGIN_DEALLOCATION).

It may make sense to create a periodic job that runs with the check
enabled, but otherwise the check can be used by developers for
debugging purposes.

Change-Id: I9ebe663abbc4e4ff3a62d807d5a3230c2ecccd07
Related-Bug: #1234857
neutron/tests/base.py