Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@xxxxxxx> --- nfs4.1/testmod.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/nfs4.1/testmod.py b/nfs4.1/testmod.py index 661aed0..32f51a9 100644 --- a/nfs4.1/testmod.py +++ b/nfs4.1/testmod.py @@ -97,10 +97,11 @@ class Test(object): _funct_result = Result(DEP_FUNCT, default=True) __re = re.compile(r'(\D*)(\d*)(.*)') - def __init__(self, function, module=""): + def __init__(self, suite, function, module=""): """Needs function to be run""" self.runtest = function self.name = function.__name__ + self.suite = suite if module: self.fullname = module.split('.')[-1] + '.' + self.name else: @@ -347,7 +348,7 @@ def createtests(testdir): for attr in dir(mod): if attr.startswith("test"): f = getattr(mod, attr) - tests.append(Test(f, testmod)) + tests.append(Test(testfile, f, testmod)) # Reduce doc string info into format easier to work with used_codes = {} flag_dict = {} @@ -451,8 +452,8 @@ def xml_printresults(tests, file_name, suite='all'): for t in tests: testcase = doc.createElement("testcase") testsuite.appendChild(testcase) - testcase.setAttribute("name", str(t)) - testcase.setAttribute("classname", suite) + testcase.setAttribute("name", t.name) + testcase.setAttribute("classname", t.suite) testcase.setAttribute("time", str(t.time_taken)) total_time += t.time_taken -- 1.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html