Przeglądaj źródła

ci: fix ttfw ignoring test failure if exception in print_debug_info

David Cermak 5 lat temu
rodzic
commit
a463e80d43
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      tools/ci/python_packages/tiny_test_fw/Env.py

+ 2 - 2
tools/ci/python_packages/tiny_test_fw/Env.py

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