From d517d1344b0be739ad7192c9fb49518f8f138712 Mon Sep 17 00:00:00 2001
From: "ting.wang" <ting.wang@easystack.cn>
Date: Sun, 10 Jan 2016 00:38:07 +0800
Subject: [PATCH] Add debug testenv in tox

Once we add debug testenv, we can use "tox -e debug -- --debug"
to debug test cases when tox is running.

Change-Id: If12d6c7bd8b1ae04096b526ad37978f60fdb70db
---
 tox.ini | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/tox.ini b/tox.ini
index 32673a55c2..944776d4e8 100644
--- a/tox.ini
+++ b/tox.ini
@@ -18,6 +18,17 @@ commands =
 commands = sphinx-build -a -E -W -d releasenotes/build/doctrees \
          -b html releasenotes/source releasenotes/build/html
 
+[testenv:debug]
+commands = oslo_debug_helper {posargs}
+
+[testenv:debug-py27]
+basepython = python2.7
+commands = oslo_debug_helper {posargs}
+
+[testenv:debug-py34]
+basepython = python3.4
+commands = oslo_debug_helper {posargs}
+
 [testenv:pep8]
 commands =
   flake8 {posargs}