make -C tools/testing/selftests TARGETS="drivers/net" TEST_PROGS=shaper.pyy TEST_GEN_PROGS="" run_tests make: Entering directory '/home/virtme/testing-17/tools/testing/selftests' make[1]: Entering directory '/home/virtme/testing-17/tools/testing/selftests/drivers/net' make[1]: Nothing to be done for 'all'. make[1]: Leaving directory '/home/virtme/testing-17/tools/testing/selftests/drivers/net' make[1]: Entering directory '/home/virtme/testing-17/tools/testing/selftests/drivers/net' TAP version 13 1..1 # timeout set to 45 # selftests: drivers/net: shaper.py # KTAP version 1 # 1..10 # ok 1 shaper.get_shapers # ok 2 shaper.get_caps # # Check| At /home/virtme/testing-17/tools/testing/selftests/drivers/net/./shaper.py, line 76, in set_qshapers: # # Check| ksft_eq(shaper_q1, {'ifindex': cfg.ifindex, # # Check failed {'ifindex': 5, 'parent': {'scope': 'netdev'}, 'handle': {'scope': 'queue', 'id': 1}, 'metric': 'bps', 'bw-min': 18446744072333694406, 'bw-max': 10000, 'priority': 2925484975, 'weight': 4294967295} != {'ifindex': 5, 'parent': {'scope': 'netdev'}, 'handle': {'scope': 'queue', 'id': 1}, 'metric': 'bps', 'bw-max': 10000} # # Check| At /home/virtme/testing-17/tools/testing/selftests/drivers/net/./shaper.py, line 83, in set_qshapers: # # Check| ksft_eq(shapers, [{'ifindex': cfg.ifindex, # # Check failed [{'ifindex': 5, 'parent': {'scope': 'netdev'}, 'handle': {'scope': 'queue', 'id': 1}, 'metric': 'bps', 'bw-min': 18446744072333694406, 'bw-max': 10000, 'priority': 2925484975, 'weight': 4294967295}, {'ifindex': 5, 'parent': {'scope': 'netdev'}, 'handle': {'scope': 'queue', 'id': 2}, 'metric': 'bps', 'bw-min': 18446744072333694406, 'bw-max': 20000, 'priority': 2925484975, 'weight': 4294967295}] != [{'ifindex': 5, 'parent': {'scope': 'netdev'}, 'handle': {'scope': 'queue', 'id': 1}, 'metric': 'bps', 'bw-max': 10000}, {'ifindex': 5, 'parent': {'scope': 'netdev'}, 'handle': {'scope': 'queue', 'id': 2}, 'metric': 'bps', 'bw-max': 20000}] # not ok 3 shaper.set_qshapers # ok 4 shaper.del_qshapers # # Exception| Traceback (most recent call last): # # Exception| File "/home/virtme/testing-17/tools/testing/selftests/net/lib/py/ksft.py", line 213, in ksft_run # # Exception| case(*args) # # Exception| File "/home/virtme/testing-17/tools/testing/selftests/drivers/net/./shaper.py", line 122, in set_nshapers # # Exception| shapers = nl_shaper.get({'ifindex': cfg.ifindex}, dump=True) # # Exception| File "/home/virtme/testing-17/tools/net/ynl/lib/ynl.py", line 1032, in _op # # Exception| return self._ops(ops)[0] # # Exception| File "/home/virtme/testing-17/tools/net/ynl/lib/ynl.py", line 1019, in _ops # # Exception| rsp_msg = self._decode(decoded.raw_attrs, op.attr_set.name) # # Exception| File "/home/virtme/testing-17/tools/net/ynl/lib/ynl.py", line 747, in _decode # # Exception| decoded = self._decode_enum(decoded, attr_spec) # # Exception| File "/home/virtme/testing-17/tools/net/ynl/lib/ynl.py", line 619, in _decode_enum # # Exception| value = enum.entries_by_val[raw].name # # Exception| KeyError: 31 # not ok 5 shaper.set_nshapers # ok 6 shaper.del_nshapers # ok 7 shaper.basic_groups # # Exception| Traceback (most recent call last): # # Exception| File "/home/virtme/testing-17/tools/testing/selftests/net/lib/py/ksft.py", line 213, in ksft_run # # Exception| case(*args) # # Exception| File "/home/virtme/testing-17/tools/testing/selftests/drivers/net/./shaper.py", line 225, in qgroups # # Exception| shaper = nl_shaper.get({'ifindex': cfg.ifindex, # # Exception| File "/home/virtme/testing-17/tools/net/ynl/lib/ynl.py", line 1032, in _op # # Exception| return self._ops(ops)[0] # # Exception| File "/home/virtme/testing-17/tools/net/ynl/lib/ynl.py", line 1019, in _ops # # Exception| rsp_msg = self._decode(decoded.raw_attrs, op.attr_set.name) # # Exception| File "/home/virtme/testing-17/tools/net/ynl/lib/ynl.py", line 734, in _decode # # Exception| subdict = self._decode(NlAttrs(attr.raw), attr_spec['nested-attributes'], search_attrs) # # Exception| File "/home/virtme/testing-17/tools/net/ynl/lib/ynl.py", line 747, in _decode # # Exception| decoded = self._decode_enum(decoded, attr_spec) # # Exception| File "/home/virtme/testing-17/tools/net/ynl/lib/ynl.py", line 619, in _decode_enum # # Exception| value = enum.entries_by_val[raw].name # # Exception| KeyError: 4 # not ok 8 shaper.qgroups # # Exception| Traceback (most recent call last): # # Exception| File "/home/virtme/testing-17/tools/testing/selftests/net/lib/py/ksft.py", line 213, in ksft_run # # Exception| case(*args) # # Exception| File "/home/virtme/testing-17/tools/testing/selftests/drivers/net/./shaper.py", line 288, in delegation # # Exception| caps = nl_shaper.cap_get({'ifindex': cfg.ifindex, # # Exception| File "/home/virtme/testing-17/tools/net/ynl/lib/ynl.py", line 1032, in _op # # Exception| return self._ops(ops)[0] # # Exception| File "/home/virtme/testing-17/tools/net/ynl/lib/ynl.py", line 1004, in _ops # # Exception| del reqs_by_seq[nl_msg.nl_seq] # # Exception| KeyError: 29170 # not ok 9 shaper.delegation # Unexpected message: nl_len = 68 (52) nl_flags = 0x0 nl_type = 22genl_cmd = 5 genl_ver = 1 # [type:1 len:8] b'\x05\x00\x00\x00' # [type:2 len:8] b'\x03\x00\x00\x00' # [type:3 len:4] b'' # [type:4 len:4] b'' # [type:5 len:4] b'' # [type:6 len:4] b'' # [type:7 len:4] b'' # [type:8 len:4] b'' # [type:9 len:4] b'' # [type:10 len:4] b'' # # # Exception| Traceback (most recent call last): # # Exception| File "/home/virtme/testing-17/tools/testing/selftests/net/lib/py/ksft.py", line 213, in ksft_run # # Exception| case(*args) # # Exception| File "/home/virtme/testing-17/tools/testing/selftests/drivers/net/./shaper.py", line 383, in queue_update # # Exception| nl_shaper.set({'ifindex': cfg.ifindex, # # Exception| File "/home/virtme/testing-17/tools/net/ynl/lib/ynl.py", line 1032, in _op # # Exception| return self._ops(ops)[0] # # Exception| File "/home/virtme/testing-17/tools/net/ynl/lib/ynl.py", line 976, in _ops # # Exception| nms = NlMsgs(reply, attr_space=op.attr_set) # # Exception| AttributeError: 'NoneType' object has no attribute 'attr_set' # not ok 10 shaper.queue_update # # Totals: pass:5 fail:5 xfail:0 xpass:0 skip:0 error:0 not ok 1 selftests: drivers/net: shaper.py # exit=1 make[1]: Leaving directory '/home/virtme/testing-17/tools/testing/selftests/drivers/net' make: Leaving directory '/home/virtme/testing-17/tools/testing/selftests' xx__-> echo $? 0 xx__->