test.ListCmd: Fix option match logic

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2023-01-02 15:51:56 +01:00
commit fe8d9c0300

View file

@ -56,7 +56,7 @@ class ListCmd(TestCase): # export
if type(val) != list: if type(val) != list:
raise Exception('Found attribute {}="{}" of unexpected value type {}'.format(key, val, type(val))) raise Exception('Found attribute {}="{}" of unexpected value type {}'.format(key, val, type(val)))
if feature in val: # first match if feature in val: # first match
return True return key == key_
return False return False
def check_attrib(self, key, features): def check_attrib(self, key, features):