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:
parent
ecbda3076e
commit
6f5c1ee8e4
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue