From 287c07129f628cda2e7bc411ab391ef518c860fb Mon Sep 17 00:00:00 2001 From: Pavel Emelyanov Date: Tue, 3 Nov 2015 10:38:48 +0300 Subject: [PATCH] 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 --- test/zdtm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/zdtm.py b/test/zdtm.py index 1e967f55f..a989df368 100755 --- a/test/zdtm.py +++ b/test/zdtm.py @@ -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():