mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-devtest
synced 2026-01-15 02:22:56 +01:00
test.ListCmd: Fix option match logic
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
745dfa2737
commit
fe8d9c0300
1 changed files with 1 additions and 1 deletions
|
|
@ -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):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue