[elbe-devel] [PATCH] test_xml: make sure the full traceback ends up in the test result

Olivier Dion dion at linutronix.de
Fri Jan 22 17:47:33 CET 2021


On Fri, 22 Jan 2021, Christian Teklenborg <chris at linutronix.de> wrote:
> Before, only a CommandError with the executed command and an exit code was
> captured and written to the test result if an error occured. Extend the test
> result with the full traceback.

Remove the import of system() from shellhelper.py and define a new system()
function inside test_xml.py that use command_out():
----------------------------------------------------------------------
def system(cmd):
    ret, out = command_out(cmd)
    if ret != 0:
        raise Exception(out)
----------------------------------------------------------------------        

-- 
Olivier Dion
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen


More information about the elbe-devel mailing list