[Bf-blender-cvs] [a608313860f] master: Mesh automated testing: improve progress printing
Habib Gahbiche
noreply at git.blender.org
Thu Feb 11 18:37:52 CET 2021
Commit: a608313860ff24f0ce45f9bcd7d8f0e25872ec96
Author: Habib Gahbiche
Date: Thu Feb 11 23:07:00 2021 +0530
Branches: master
https://developer.blender.org/rBa608313860ff24f0ce45f9bcd7d8f0e25872ec96
Mesh automated testing: improve progress printing
Print number of total tests with each test to show how many tests have been executed and how many are left.
Example: `Running test 27/36: PlaneFaceSplitByEdges...`
Reviewed By: calra, mont29
Differential Revision: https://developer.blender.org/D10278
===================================================================
M tests/python/modules/mesh_test.py
===================================================================
diff --git a/tests/python/modules/mesh_test.py b/tests/python/modules/mesh_test.py
index a58b803b22d..020b1bff08f 100644
--- a/tests/python/modules/mesh_test.py
+++ b/tests/python/modules/mesh_test.py
@@ -662,8 +662,7 @@ class RunTest:
test_name = each_test.test_name
if self.verbose:
print()
- print("Running test {}...".format(test_number))
- print("Test name {}\n".format(test_name))
+ print("Running test {}/{}: {}...".format(test_number+1, len(self.tests), test_name))
success = self.run_test(test_name)
if not success:
More information about the Bf-blender-cvs
mailing list