summaryrefslogtreecommitdiff
path: root/test-cli/test/runners
diff options
context:
space:
mode:
Diffstat (limited to 'test-cli/test/runners')
-rw-r--r--test-cli/test/runners/simple.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/test-cli/test/runners/simple.py b/test-cli/test/runners/simple.py
index a165406..e0418d2 100644
--- a/test-cli/test/runners/simple.py
+++ b/test-cli/test/runners/simple.py
@@ -71,10 +71,19 @@ class TextTestResult(unittest.TestResult):
unittest.TestResult.stopTest(self, test)
# display: print test result
self.runner.writeUpdate(self.result)
+ # save result data
+ for result in test.getresults():
+ if "desc" in result.keys() and result["desc"]:
+ if "type" in result.keys() and "data" in result.keys():
+ if result["type"] == "string":
+ self.__pgObj.upload_result_string(test.params["testidctl"], test.params["testid"],
+ result["desc"], result["data"])
+ elif result["type"] == "file":
+ self.__pgObj.upload_result_file(test.params["testidctl"], test.params["testid"], result["desc"],
+ result["data"])
# SEND TO DB THE RESULT OF THE TEST
if self.result == self.PASS:
status = "TEST_COMPLETE"
else:
status = "TEST_FAILED"
self.__pgObj.finish_test(test.params["testidctl"], test.params["testid"], status)
-