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:
Pavel Emelyanov 2015-11-03 10:40:19 +03:00
parent 287c07129f
commit dc55d23805

View file

@ -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