zdtm: Remove junit_xml leftovers

The previous commit 4cd4a6b1ac ("zdtm: stop importing junit_xml")
removed the junit_xml library, but some variables related to it were
left in the code. This commit removes the unused `tc` variable and a
call to its `add_error_info` method.

Fixes: 4cd4a6b1ac ("zdtm: stop importing junit_xml")
Signed-off-by: Andrei Vagin <avagin@gmail.com>
This commit is contained in:
Andrei Vagin 2025-09-22 17:59:29 +00:00 committed by Andrei Vagin
parent 2d2168fc9c
commit 91758a68e9

View file

@ -2232,7 +2232,6 @@ class Launcher:
# The following wait() is not useful for our domain logic.
# It's useful for taming warnings in subprocess.Popen.__del__()
sub['sub'].wait()
tc = None
if status != 0:
self.__fail = True
failed_flavor = decode_flav(os.WEXITSTATUS(status))
@ -2243,7 +2242,6 @@ class Launcher:
with open(sub['log']) as sublog:
output = sublog.read()
details = {'output': output}
tc.add_error_info(output=output)
print(testline, file=self.__file_report)
print("%s" % yaml.safe_dump(details,
explicit_start=True,