[Bf-blender-cvs] [99fcfdd9fb9] master: Tests: Print when mesh test starts, to help debugging crashes

Hans Goudey noreply at git.blender.org
Tue Dec 20 19:02:35 CET 2022


Commit: 99fcfdd9fb913e03b2e6e4cd0764a88cbca88902
Author: Hans Goudey
Date:   Tue Dec 20 12:02:05 2022 -0600
Branches: master
https://developer.blender.org/rB99fcfdd9fb913e03b2e6e4cd0764a88cbca88902

Tests: Print when mesh test starts, to help debugging crashes

===================================================================

M	tests/python/modules/mesh_test.py

===================================================================

diff --git a/tests/python/modules/mesh_test.py b/tests/python/modules/mesh_test.py
index b698540c367..1fc685023cb 100644
--- a/tests/python/modules/mesh_test.py
+++ b/tests/python/modules/mesh_test.py
@@ -238,6 +238,7 @@ class MeshTest(ABC):
         """
         Runs a single test, runs it again if test file is updated.
         """
+        print("\nSTART {} test.".format(self.test_name))
 
         self.create_evaluated_object()
         self.apply_operations(self.evaluated_object.name)
@@ -289,14 +290,14 @@ class MeshTest(ABC):
         """
         Print results for failed test.
         """
-        print("\nFAILED {} test with the following: ".format(self.test_name))
+        print("FAILED {} test with the following: ".format(self.test_name))
         self._print_result(result)
 
     def print_passed_test_result(self, result):
         """
         Print results for passing test.
         """
-        print("\nPASSED {} test successfully.".format(self.test_name))
+        print("PASSED {} test successfully.".format(self.test_name))
         self._print_result(result)
 
     def do_selection(self, mesh: bpy.types.Mesh, select_mode: str, selection, select_history: bool):



More information about the Bf-blender-cvs mailing list