[Bf-blender-cvs] [d21ad2cc399] soc-2020-testing-frameworks: Updated the run_test command from index to name

calra123 noreply at git.blender.org
Sun Jul 26 21:27:53 CEST 2020


Commit: d21ad2cc39929dbd533e8e4c3ac642803e1cc6ee
Author: calra123
Date:   Mon Jul 20 12:45:35 2020 +0530
Branches: soc-2020-testing-frameworks
https://developer.blender.org/rBd21ad2cc39929dbd533e8e4c3ac642803e1cc6ee

Updated the run_test command from index to name

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

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

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

diff --git a/tests/python/bevel_operator.py b/tests/python/bevel_operator.py
index 77481865ac4..f9301703439 100644
--- a/tests/python/bevel_operator.py
+++ b/tests/python/bevel_operator.py
@@ -169,8 +169,8 @@ def main():
             operator_test.run_all_tests()
             break
         elif cmd == "--run-test":
-            index = int(command[i + 1])
-            operator_test.run_test(index)
+            name = str(command[i + 1])
+            operator_test.run_test(name)
             break
 
 
diff --git a/tests/python/boolean_operator.py b/tests/python/boolean_operator.py
index 7e8d604882f..ccae97e2ced 100644
--- a/tests/python/boolean_operator.py
+++ b/tests/python/boolean_operator.py
@@ -54,8 +54,8 @@ def main():
             operator_test.run_all_tests()
             break
         elif cmd == "--run-test":
-            index = int(command[i + 1])
-            operator_test.run_test(index)
+            name = str(command[i + 1])
+            operator_test.run_test(name)
             break
 
 
diff --git a/tests/python/operators.py b/tests/python/operators.py
index 043a93d903d..351511e98a3 100644
--- a/tests/python/operators.py
+++ b/tests/python/operators.py
@@ -157,8 +157,8 @@ def main():
             break
         elif cmd == "--run-test":
             operators_test.apply_modifiers = False
-            index = int(command[i + 1])
-            operators_test.run_test(index)
+            name = str(command[i + 1])
+            operators_test.run_test(name)
             break
 
 
diff --git a/tests/python/physics_cloth.py b/tests/python/physics_cloth.py
index 434c468a14d..1de8c9ff92b 100644
--- a/tests/python/physics_cloth.py
+++ b/tests/python/physics_cloth.py
@@ -42,8 +42,8 @@ def main():
             break
         elif cmd == "--run-test":
             cloth_test.apply_modifiers = False
-            index = int(command[i + 1])
-            cloth_test.run_test(index)
+            name = str(command[i + 1])
+            cloth_test.run_test(name)
             break
 
 
diff --git a/tests/python/physics_softbody.py b/tests/python/physics_softbody.py
index dfc8703c993..12a031af95d 100644
--- a/tests/python/physics_softbody.py
+++ b/tests/python/physics_softbody.py
@@ -42,8 +42,8 @@ def main():
             break
         elif cmd == "--run-test":
             soft_body_test.apply_modifiers = False
-            index = int(command[i + 1])
-            soft_body_test.run_test(index)
+            name = str(command[i + 1])
+            soft_body_test.run_test(name)
             break



More information about the Bf-blender-cvs mailing list