cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t..@apache.org
Subject git commit: updated refs/heads/4.2 to fb75f51
Date Mon, 22 Jul 2013 07:20:56 GMT
Updated Branches:
  refs/heads/4.2 77aa85d25 -> fb75f5175


CLOUDSTACK-3075: Test names appended with <module>-<testname>

Prevent chained appending of the testclass/testnames to the accounnt
names.

Signed-off-by: Prasanna Santhanam <tsp@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/fb75f517
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/fb75f517
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/fb75f517

Branch: refs/heads/4.2
Commit: fb75f51755a2a0f28766f3e15b3e349151c85334
Parents: 77aa85d
Author: Prasanna Santhanam <tsp@apache.org>
Authored: Mon Jul 22 12:49:42 2013 +0530
Committer: Prasanna Santhanam <tsp@apache.org>
Committed: Mon Jul 22 12:49:42 2013 +0530

----------------------------------------------------------------------
 tools/marvin/marvin/marvinPlugin.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/fb75f517/tools/marvin/marvin/marvinPlugin.py
----------------------------------------------------------------------
diff --git a/tools/marvin/marvin/marvinPlugin.py b/tools/marvin/marvin/marvinPlugin.py
index 19930d4..ca226f8 100644
--- a/tools/marvin/marvin/marvinPlugin.py
+++ b/tools/marvin/marvin/marvinPlugin.py
@@ -104,6 +104,7 @@ class MarvinPlugin(Plugin):
         Plugin.options(self, parser, env)
 
     def __init__(self):
+        self.identifier = None
         Plugin.__init__(self)
 
     def prepareTestRunner(self, runner):
@@ -118,7 +119,7 @@ class MarvinPlugin(Plugin):
 
     def loadTestsFromTestCase(self, cls):
         if cls.__name__ != 'cloudstackTestCase':
-            self.testclient.identifier = cls.__name__
+            self.identifier = cls.__name__
             self._injectClients(cls)
 
     def setClient(self, client):
@@ -131,7 +132,7 @@ class MarvinPlugin(Plugin):
 
     def beforeTest(self, test):
         testname = test.__str__().split()[0]
-        self.testclient.identifier = '-'.join([self.testclient.identifier, testname])
+        self.testclient.identifier = '-'.join([self.identifier, testname])
 
     def _injectClients(self, test):
         testcaselogger = logging.getLogger("testclient.testcase.%s" %


Mime
View raw message