mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-22 17:49:13 +00:00
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:
parent
d35f4a1543
commit
287c07129f
1 changed files with 1 additions and 1 deletions
|
|
@ -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():
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue