zdtm.py: Fix cmp_lists routine

The zip() trims longest list thus we can lose objects the appeared at tail

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov 2015-11-03 10:38:48 +03:00
parent d35f4a1543
commit 287c07129f

View file

@ -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():