[Bf-blender-cvs] [9d72c9e] master: Tests: Print counter with operator test
Campbell Barton
noreply at git.blender.org
Tue Mar 10 12:21:54 CET 2015
Commit: 9d72c9e7e56b0724351c7a6093f0f96dbdff2def
Author: Campbell Barton
Date: Tue Mar 10 22:00:24 2015 +1100
Branches: master
https://developer.blender.org/rB9d72c9e7e56b0724351c7a6093f0f96dbdff2def
Tests: Print counter with operator test
===================================================================
M tests/python/bl_run_operators.py
===================================================================
diff --git a/tests/python/bl_run_operators.py b/tests/python/bl_run_operators.py
index f7fafe8..d511cd1 100644
--- a/tests/python/bl_run_operators.py
+++ b/tests/python/bl_run_operators.py
@@ -34,6 +34,10 @@ RANDOM_SEED = [1] # so we can redo crashes
RANDOM_RESET = 0.1 # 10% chance of resetting on each new operator
RANDOM_MULTIPLY = 10
+STATE = {
+ "counter": 0,
+ }
+
op_blacklist = (
"script.reload",
@@ -75,6 +79,7 @@ op_blacklist = (
"wm.properties_context_change",
"wm.operator_cheat_sheet",
"wm.interface_theme_*",
+ "wm.previews_ensure", # slow - but harmless
"wm.appconfig_*", # just annoying - but harmless
"wm.keyitem_add", # just annoying - but harmless
"wm.keyconfig_activate", # just annoying - but harmless
@@ -248,7 +253,8 @@ def run_ops(operators, setup_func=None, reset=True):
# first invoke
for op_id, op in operators:
if op.poll():
- print(" operator:", op_id)
+ print(" operator: %4d, %s" % (STATE["counter"], op_id))
+ STATE["counter"] += 1
sys.stdout.flush() # in case of crash
# disable will get blender in a bad state and crash easy!
More information about the Bf-blender-cvs
mailing list