Revert "tools: testing: test-cros-ec: Strip the '__main__.' prefix"

This reverts commit b62404f5.
parent b62404f5
......@@ -136,23 +136,19 @@ class LavaTextTestResult(unittest.TestResult):
def addSuccess(self, test):
unittest.TestResult.addSuccess(self, test)
name = test.id().strip("__main__.")
self.runner.writeUpdate("<LAVA_SIGNAL_TESTCASE TEST_CASE_ID=%s RESULT=pass>\n" % name)
self.runner.writeUpdate("<LAVA_SIGNAL_TESTCASE TEST_CASE_ID=%s RESULT=pass>\n" % test.id())
def addError(self, test, err):
unittest.TestResult.addError(self, test, err)
name = test.id().strip("__main__.")
self.runner.writeUpdate("<LAVA_SIGNAL_TESTCASE TEST_CASE_ID=%s RESULT=unknown>\n" % name)
self.runner.writeUpdate("<LAVA_SIGNAL_TESTCASE TEST_CASE_ID=%s RESULT=unknown>\n" % test.id())
def addFailure(self, test, err):
unittest.TestResult.addFailure(self, test, err)
name = test.id().strip("__main__.")
self.runner.writeUpdate("<LAVA_SIGNAL_TESTCASE TEST_CASE_ID=%s RESULT=fail>\n" % name)
self.runner.writeUpdate("<LAVA_SIGNAL_TESTCASE TEST_CASE_ID=%s RESULT=fail>\n" % test.id())
def addSkip(self, test, reason):
unittest.TestResult.addSkip(self, test, reason)
name = test.id().strip("__main__.")
self.runner.writeUpdate("<LAVA_SIGNAL_TESTCASE TEST_CASE_ID=%s RESULT=skip>\n" % name)
self.runner.writeUpdate("<LAVA_SIGNAL_TESTCASE TEST_CASE_ID=%s RESULT=skip>\n" % test.id())
class LavaTestRunner:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment