From dc55d23805e987bb2dffc7dc73b5db023293f387 Mon Sep 17 00:00:00 2001 From: Pavel Emelyanov Date: Tue, 3 Nov 2015 10:40:19 +0300 Subject: [PATCH] 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 --- test/zdtm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/zdtm.py b/test/zdtm.py index a989df368..f2c19ac79 100755 --- a/test/zdtm.py +++ b/test/zdtm.py @@ -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