ci: fix ttfw ignoring test failure if exception in print_debug_info

This commit is contained in:
David Cermak 2020-04-02 17:50:35 +02:00
parent 7d0f1536e4
commit a463e80d43

View File

@ -185,9 +185,9 @@ class Env(object):
dut_close_errors = []
for dut_name in self.allocated_duts:
dut = self.allocated_duts[dut_name]["dut"]
try:
if dut_debug:
dut.print_debug_info()
try:
dut.close()
except Exception as e:
dut_close_errors.append(e)