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>
(cherry picked from commit 9a5d2e9e36411ac5df17baca13874e0575233dac)
This commit is contained in:
Prasanna Santhanam 2013-07-22 14:52:04 +05:30
parent 323db5c517
commit 4956e46884
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'