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 <tsp@apache.org>
This commit is contained in:
Prasanna Santhanam 2013-07-22 14:52:04 +05:30
parent d0695c1ffc
commit a659d78905
1 changed files with 2 additions and 0 deletions

View File

@ -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'