CLOUDSTACK-8593: assign __testName if it is not getting set from test

This closes #537
Signed-off-by: SrikanteswaraRao Talluri <talluri@apache.org>
This commit is contained in:
SrikanteswaraRao Talluri 2015-06-28 15:52:31 +05:30
parent edfe6f4d4f
commit 17ecd65331
1 changed files with 2 additions and 0 deletions

View File

@ -168,6 +168,8 @@ class MarvinPlugin(Plugin):
def beforeTest(self, test):
self.__testModName = test.__str__()
self.__testName = test.__str__().split()[0]
if not self.__testName:
self.__testName = "test"
self.__testClient.identifier = '-'.\
join([self.__identifier, self.__testName])
if self.__tcRunLogger: