Repository: trafficserver-qa
Updated Branches:
  refs/heads/master 1eb2e71eb -> 02f9b070f


Fix failed tests not leaving the environment around


Project: http://git-wip-us.apache.org/repos/asf/trafficserver-qa/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver-qa/commit/02f9b070
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver-qa/tree/02f9b070
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver-qa/diff/02f9b070

Branch: refs/heads/master
Commit: 02f9b070f29c5bc1414394a7ebcfc5f732683a56
Parents: 1eb2e71
Author: Thomas Jackson <[email protected]>
Authored: Thu Feb 19 16:37:01 2015 -0800
Committer: Thomas Jackson <[email protected]>
Committed: Thu Feb 19 16:37:01 2015 -0800

----------------------------------------------------------------------
 tsqa/test_cases.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver-qa/blob/02f9b070/tsqa/test_cases.py
----------------------------------------------------------------------
diff --git a/tsqa/test_cases.py b/tsqa/test_cases.py
index 494a4fe..14d628f 100644
--- a/tsqa/test_cases.py
+++ b/tsqa/test_cases.py
@@ -45,7 +45,8 @@ class EnvironmentCase(unittest.TestCase):
 
     def run(self, result=None):
         unittest.TestCase.run(self, result)
-        self.__successful &= result.result.wasSuccessful()
+        # we want to keep track of failures at a class level-- not instance 
level
+        self.__class__.__successful &= result.result.wasSuccessful()
 
     @classmethod
     def setUpClass(cls):

Reply via email to