[Bf-blender-cvs] [685609c5ea7] soc-2020-testing-frameworks: Added apply_modifiers flag for run-test and run-all-tests

Himanshi Kalra noreply at git.blender.org
Sun Sep 6 13:08:28 CEST 2020


Commit: 685609c5ea7be4f30d55f584931516b43fb95992
Author: Himanshi Kalra
Date:   Sun Sep 6 16:38:01 2020 +0530
Branches: soc-2020-testing-frameworks
https://developer.blender.org/rB685609c5ea7be4f30d55f584931516b43fb95992

Added apply_modifiers flag for run-test and run-all-tests

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

M	tests/python/bevel_operator.py
M	tests/python/boolean_operator.py
M	tests/python/operators.py

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

diff --git a/tests/python/bevel_operator.py b/tests/python/bevel_operator.py
index b1767e63ad6..b9ea6f6b4d0 100644
--- a/tests/python/bevel_operator.py
+++ b/tests/python/bevel_operator.py
@@ -301,10 +301,12 @@ def main():
     command = list(sys.argv)
     for i, cmd in enumerate(command):
         if cmd == "--run-all-tests":
+            operator_test.apply_modifiers = True
             operator_test.run_all_tests()
             break
         elif cmd == "--run-test":
             name = command[i + 1]
+            operator_test.apply_modifiers = False
             operator_test.run_test(name)
             break
 
diff --git a/tests/python/boolean_operator.py b/tests/python/boolean_operator.py
index 939527676d5..0c66648ab68 100644
--- a/tests/python/boolean_operator.py
+++ b/tests/python/boolean_operator.py
@@ -69,10 +69,12 @@ def main():
     command = list(sys.argv)
     for i, cmd in enumerate(command):
         if cmd == "--run-all-tests":
+            operator_test.apply_modifiers = True
             operator_test.run_all_tests()
             break
         elif cmd == "--run-test":
             name = command[i + 1]
+            operator_test.apply_modifiers = False
             operator_test.run_test(name)
             break
 
diff --git a/tests/python/operators.py b/tests/python/operators.py
index bc754fcd5a8..80b470c3668 100644
--- a/tests/python/operators.py
+++ b/tests/python/operators.py
@@ -207,6 +207,7 @@ def main():
     command = list(sys.argv)
     for i, cmd in enumerate(command):
         if cmd == "--run-all-tests":
+            operators_test.apply_modifiers = True
             operators_test.run_all_tests()
             break
         elif cmd == "--run-test":



More information about the Bf-blender-cvs mailing list