Commit dc55d238 authored by Pavel Emelyanov's avatar Pavel Emelyanov

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: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 287c0712
......@@ -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
......
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