summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Finucane <sfinucan@redhat.com>2018-05-21 15:01:01 -0700
committerStephen Finucane <sfinucan@redhat.com>2018-07-18 15:26:52 +0100
commit6f5c1ee8e4e9c1c05f16b7dfe57c3245ad38b0cf (patch)
tree8490593a9c7561beaa31e8c0e8dcecf2bc329eb7
parentecbda3076e4787241f4a4d8b00e36c7d7d55077e (diff)
downloadpbr-6f5c1ee8e4e9c1c05f16b7dfe57c3245ad38b0cf.tar.gz
Deprecate 'test' integration4.2.0
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>
-rw-r--r--pbr/packaging.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/pbr/packaging.py b/pbr/packaging.py
index 44bfb1a..8656a6c 100644
--- a/pbr/packaging.py
+++ b/pbr/packaging.py
@@ -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)