Commit 603429bf authored by Steffen Müthing's avatar Steffen Müthing

[testing] Fix stupid bugs in dune-ctest

parent 92dbb25e
Pipeline #16592 failed with stage
in 13 minutes and 46 seconds
...@@ -131,8 +131,8 @@ class CTestParser: ...@@ -131,8 +131,8 @@ class CTestParser:
self.printTest(test,output="Compilation error") self.printTest(test,output="Compilation error")
else: else:
error = et.SubElement(testcase,"error") error = et.SubElement(testcase,"error")
error.message("unknown error during test execution") error.set("message","unknown error during test execution")
error.type("unknown") error.set("type","unknown")
error.text = test.find("./Results/Measurement/Value").text error.text = test.find("./Results/Measurement/Value").text
self.errors += 1 self.errors += 1
self.printTest(test) self.printTest(test)
...@@ -151,15 +151,15 @@ class CTestParser: ...@@ -151,15 +151,15 @@ class CTestParser:
self.printTest(test,output="Compilation error") self.printTest(test,output="Compilation error")
else: else:
error = et.SubElement(testcase,"error") error = et.SubElement(testcase,"error")
error.message("unknown error during test execution") error.set("message"."unknown error during test execution")
error.type("unknown") error.set("type","unknown")
error.text = msg error.text = msg
self.errors += 1 self.errors += 1
self.printTest(test) self.printTest(test)
else: else:
error = et.SubElement(testcase,"error") error = et.SubElement(testcase,"error")
error.message("unknown error during test execution") error.set("message","unknown error during test execution")
error.type("unknown") error.set("type","unknown")
error.text = "no message" error.text = "no message"
self.errors += 1 self.errors += 1
self.printTest(test) self.printTest(test)
......
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