[elbe-devel] [PATCH] test: use old method junit.TestSuite.to_xml_string()

Torben Hohn torben.hohn at linutronix.de
Wed Jul 22 13:18:28 CEST 2020


junit.to_xml_report_string() is not available in buster.

Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
 elbepack/commands/test.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/elbepack/commands/test.py b/elbepack/commands/test.py
index 761d457ec..31f1ae2dd 100644
--- a/elbepack/commands/test.py
+++ b/elbepack/commands/test.py
@@ -181,7 +181,7 @@ def run_command(argv):
 
     ts = junit.TestSuite(name="test", test_cases=cases)
 
-    results = junit.to_xml_report_string([ts], encoding="utf-8")
+    results = junit.TestSuite.to_xml_string([ts], encoding="utf-8")
 
     if opt.output is None:
         print(results)
-- 
2.20.1



More information about the elbe-devel mailing list