Fix related to T65963: Ctest: Failing test script_load_keymap passes.

Fix things to make test actually fail as expected (one cannot compare
functions to strings, so no more sorting for now).

Not sure how to actually fix the test though, not even sure test make
any sense anymore actually, with all those weirdo gizmos and tools
keymaps thingy...
This commit is contained in:
Bastien Montagne 2019-06-25 16:07:28 +02:00
parent c8034993ff
commit 24b47c00ea
1 changed files with 6 additions and 3 deletions

View File

@ -49,14 +49,17 @@ def check_maps():
test = maps_py - maps_bl
if test:
print("Keymaps that are in 'bl_keymap_utils.keymap_hierarchy' but not blender")
for km_id in sorted(test):
for km_id in test:
if callable(km_id):
# Keymap functions of tools are not in blender anyway...
continue
print("\t%s" % km_id)
err = True
err = True
test = maps_bl - maps_py
if test:
print("Keymaps that are in blender but not in 'bl_keymap_utils.keymap_hierarchy'")
for km_id in sorted(test):
for km_id in test:
km = keyconf.keymaps[km_id]
print(" ('%s', '%s', '%s', [])," % (km_id, km.space_type, km.region_type))
err = True