diff options
author | Ben Nemec <bnemec@redhat.com> | 2014-09-26 17:24:05 +0000 |
---|---|---|
committer | Ben Nemec <bnemec@redhat.com> | 2014-09-30 15:03:48 +0000 |
commit | 5d1461204d1cce680378d5b7c6c2b17f19b7f4b0 (patch) | |
tree | f3ca38076f04a3f0eb5c659c1de2212e45fb540c /setup.cfg | |
parent | c98d5edc44ad44da7196afa4b6bba0a2afea1f8e (diff) | |
download | oslo-concurrency-5d1461204d1cce680378d5b7c6c2b17f19b7f4b0.tar.gz |
Make lockutils main() a console entry point
This is more lib-ish than calling python -m on the module.
As part of this change, I also improved the unit tests for this code.
Before we weren't unsetting OSLO_LOCK_PATH before calling the main
function, so we had no way of knowing if it was being set correctly.
I also added a test case to verify return value propagation and
removed a private method that was never called.
Change-Id: I6c35b5409bf567767c5c71b9041dd7f7a012255d
Diffstat (limited to 'setup.cfg')
-rw-r--r-- | setup.cfg | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -29,6 +29,8 @@ namespace_packages = [entry_points] oslo.config.opts = oslo.concurrency = oslo.concurrency.opts:list_opts +console_scripts = + lockutils-wrapper = oslo.concurrency.lockutils:main [build_sphinx] source-dir = doc/source |