Commit 287c0712 authored by Pavel Emelyanov's avatar Pavel Emelyanov

zdtm.py: Fix cmp_lists routine

The zip() trims longest list thus we can lose objects the appeared at tail
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent d35f4a15
......@@ -592,7 +592,7 @@ def get_fds(test):
return map(lambda x: int(x), os.listdir("/proc/%s/fdinfo" % test.getpid()))
def cmp_lists(m1, m2):
return filter(lambda x: x[0] != x[1], zip(m1, m2))
return len(m1) != len(m2) or filter(lambda x: x[0] != x[1], zip(m1, m2))
def get_visible_state(test):
if test.static():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment