From 24b47c00eaabe12b5262b59a185da154a477bd98 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Tue, 25 Jun 2019 16:07:28 +0200 Subject: [PATCH] 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... --- tests/python/bl_keymap_completeness.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/python/bl_keymap_completeness.py b/tests/python/bl_keymap_completeness.py index 19541b355e2..30dac64f88b 100644 --- a/tests/python/bl_keymap_completeness.py +++ b/tests/python/bl_keymap_completeness.py @@ -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