From fe8d9c03006d3e95967446735c558c145a6e890c Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Mon, 2 Jan 2023 15:51:56 +0100 Subject: [PATCH] test.ListCmd: Fix option match logic Signed-off-by: Jan Lindemann --- src/python/devtest/os/test/ListCmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/python/devtest/os/test/ListCmd.py b/src/python/devtest/os/test/ListCmd.py index b233b50..2a6224e 100644 --- a/src/python/devtest/os/test/ListCmd.py +++ b/src/python/devtest/os/test/ListCmd.py @@ -56,7 +56,7 @@ class ListCmd(TestCase): # export if type(val) != list: raise Exception('Found attribute {}="{}" of unexpected value type {}'.format(key, val, type(val))) if feature in val: # first match - return True + return key == key_ return False def check_attrib(self, key, features):