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

Bastian Germann bage at linutronix.de
Wed Jul 22 15:42:07 CEST 2020


Am 22.07.20 um 13:18 schrieb Torben Hohn:
> junit.to_xml_report_string() is not available in buster.
> 
> Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>

Reviewed-by: Bastian Germann <bage 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)
> 


More information about the elbe-devel mailing list