mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-28 20:42:49 +00:00
zdtm.py: Printf maps before diffing them
First -- set cannot be made out of lists (and maps lists contain lists of pairs) Second -- it is much better to read map diffs in hex, rather than ints (as they would be if repr-ed by default) Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
parent
287c07129f
commit
dc55d23805
1 changed files with 2 additions and 2 deletions
|
|
@ -607,8 +607,8 @@ def check_visible_state(test, state):
|
|||
if cmp_lists(new[0], state[0]):
|
||||
raise test_fail_exc("fds compare")
|
||||
if cmp_lists(new[1], state[1]):
|
||||
s_new = set(new[1])
|
||||
s_old = set(state[1])
|
||||
s_new = set(map(lambda x: '%x-%x' % (x[0], x[1]), new[1]))
|
||||
s_old = set(map(lambda x: '%x-%x' % (x[0], x[1]), state[1]))
|
||||
|
||||
print "Old maps lost:"
|
||||
print s_old - s_new
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue