Deprecate 'test' integration

No one in OpenStack should be using this command any more and it's
unlikely that anyone outside it is even using these. We don't want to
have to continue supporting this going forward so let's start the
deprecation process.

Change-Id: I51e8ebb0268ff7ec1e71d66ff59422fcc7377c4c
Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
This commit is contained in:
Stephen Finucane 2018-05-21 15:01:01 -07:00
parent ecbda3076e
commit 6f5c1ee8e4
1 changed files with 6 additions and 0 deletions

View File

@ -217,8 +217,14 @@ class TestrTest(testr_command.Testr):
"""Make setup.py test do the right thing."""
command_name = 'test'
description = 'DEPRECATED: Run unit tests using testr'
def run(self):
warnings.warn('testr integration is deprecated in pbr 4.2 and will '
'be removed in a future release. Please call your test '
'runner directly',
DeprecationWarning)
# Can't use super - base class old-style class
testr_command.Testr.run(self)