[Bf-blender-cvs] [53fc2ca51fd] soc-2021-geometry-nodes-regression-test: Polishing script, checking for verbose use cases

Himanshi Kalra noreply at git.blender.org
Tue Jul 20 11:59:07 CEST 2021


Commit: 53fc2ca51fd3777b5b4249a754244ead582ae7cf
Author: Himanshi Kalra
Date:   Fri Jul 16 17:38:54 2021 +0530
Branches: soc-2021-geometry-nodes-regression-test
https://developer.blender.org/rB53fc2ca51fd3777b5b4249a754244ead582ae7cf

Polishing script, checking for verbose use cases

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

M	tests/python/geo_node_test.py
M	tests/python/modules/mesh_test.py

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

diff --git a/tests/python/geo_node_test.py b/tests/python/geo_node_test.py
index 09988cd3d51..6d6f5cc2963 100644
--- a/tests/python/geo_node_test.py
+++ b/tests/python/geo_node_test.py
@@ -23,11 +23,11 @@ import os
 import sys
 
 sys.path.append(os.path.dirname(os.path.realpath(__file__)))
-from modules.mesh_test import BlendFileTest, RunTest
+from modules.mesh_test import BlendFileTest
 
-geo_test = BlendFileTest("test_object", "expected_object")
-result = geo_test.run_test()
+geo_node_test = BlendFileTest("test_object", "expected_object")
+result = geo_node_test.run_test()
 
-# Telling `ctest` that the test failed by raising Exception.
+# Telling `ctest` about the failed test by raising Exception.
 if result == False:
-    raise Exception("Failed {}".format(geo_test.test_name))
\ No newline at end of file
+    raise Exception("Failed {}".format(geo_node_test.test_name))
\ No newline at end of file
diff --git a/tests/python/modules/mesh_test.py b/tests/python/modules/mesh_test.py
index 2816c4f192d..b03a865cf7b 100644
--- a/tests/python/modules/mesh_test.py
+++ b/tests/python/modules/mesh_test.py
@@ -281,6 +281,7 @@ class MeshTest(ABC):
             # Check for testing the blend file is updated and re-running.
             # Also safety check to avoid infinite recursion loop.
             if self.test_updated_counter == 1:
+                print("Re-running test...")
                 self.run_test()
             else:
                 print("The test fails consistently. Exiting...")



More information about the Bf-blender-cvs mailing list