From 4956e468842f8b59a2b165351ac233c01dca15bf Mon Sep 17 00:00:00 2001 From: Prasanna Santhanam Date: Mon, 22 Jul 2013 14:52:04 +0530 Subject: [PATCH] CLOUDSTACK-3075: When only setUpClass() is creating account Missed scenario for appending test case names to accounts when setUpClass calls the account.creation integration library. Signed-off-by: Prasanna Santhanam (cherry picked from commit 9a5d2e9e36411ac5df17baca13874e0575233dac) --- tools/marvin/marvin/marvinPlugin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/marvin/marvin/marvinPlugin.py b/tools/marvin/marvin/marvinPlugin.py index ca226f85635..8a548cd63de 100644 --- a/tools/marvin/marvin/marvinPlugin.py +++ b/tools/marvin/marvin/marvinPlugin.py @@ -150,6 +150,8 @@ class MarvinPlugin(Plugin): setattr(test, "testClient", self.testclient) setattr(test, "config", self.config) setattr(test, "debug", partial(testCaseLogger, logger=testcaselogger)) + if self.testclient.identifier is None: + self.testclient.identifier = self.identifier setattr(test, "clstestclient", self.testclient) if hasattr(test, "user"): # when the class-level attr applied. all test runs as 'user'