make -C tools/testing/selftests TARGETS="drivers/net" TEST_PROGS=shaper.pyy TEST_GEN_PROGS="" run_tests
make: Entering directory '/home/virtme/testing-18/tools/testing/selftests'
make[1]: Entering directory '/home/virtme/testing-18/tools/testing/selftests/drivers/net'
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/virtme/testing-18/tools/testing/selftests/drivers/net'
make[1]: Entering directory '/home/virtme/testing-18/tools/testing/selftests/drivers/net'
TAP version 13
1..1
# overriding timeout to 90
# 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-18/tools/testing/selftests/drivers/net/./shaper.py, line 76, in set_qshapers:
# # Check|     ksft_eq(shaper_q1, {'ifindex': cfg.ifindex,
# # Check failed {'ifindex': 8, 'parent': {'scope': 'netdev'}, 'handle': {'scope': 'queue', 'id': 1}, 'metric': 'bps', 'bw-min': 517778718638633216, 'bw-max': 10000, 'burst': 18446683600580769792, 'priority': 60858368, 'weight': 4294936704} != {'ifindex': 8, 'parent': {'scope': 'netdev'}, 'handle': {'scope': 'queue', 'id': 1}, 'metric': 'bps', 'bw-max': 10000} 
# # Check| At /home/virtme/testing-18/tools/testing/selftests/drivers/net/./shaper.py, line 83, in set_qshapers:
# # Check|     ksft_eq(shapers, [{'ifindex': cfg.ifindex,
# # Check failed [{'ifindex': 8, 'parent': {'scope': 'netdev'}, 'handle': {'scope': 'queue', 'id': 1}, 'metric': 'bps', 'bw-min': 517778718638633216, 'bw-max': 10000, 'burst': 18446683600580769792, 'priority': 60858368, 'weight': 4294936704}, {'ifindex': 8, 'parent': {'scope': 'netdev'}, 'handle': {'scope': 'queue', 'id': 2}, 'metric': 'bps', 'bw-min': 517778718638633216, 'bw-max': 20000, 'burst': 18446683600580769792, 'priority': 60858368, 'weight': 4294936704}] != [{'ifindex': 8, 'parent': {'scope': 'netdev'}, 'handle': {'scope': 'queue', 'id': 1}, 'metric': 'bps', 'bw-max': 10000}, {'ifindex': 8, '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-18/tools/testing/selftests/net/lib/py/ksft.py", line 213, in ksft_run
# # Exception|     case(*args)
# # Exception|   File "/home/virtme/testing-18/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-18/tools/net/ynl/lib/ynl.py", line 1032, in _op
# # Exception|     return self._ops(ops)[0]
# # Exception|   File "/home/virtme/testing-18/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-18/tools/net/ynl/lib/ynl.py", line 747, in _decode
# # Exception|     decoded = self._decode_enum(decoded, attr_spec)
# # Exception|   File "/home/virtme/testing-18/tools/net/ynl/lib/ynl.py", line 619, in _decode_enum
# # Exception|     value = enum.entries_by_val[raw].name
# # Exception| KeyError: 70
# 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-18/tools/testing/selftests/net/lib/py/ksft.py", line 213, in ksft_run
# # Exception|     case(*args)
# # Exception|   File "/home/virtme/testing-18/tools/testing/selftests/drivers/net/./shaper.py", line 225, in qgroups
# # Exception|     shaper = nl_shaper.get({'ifindex': cfg.ifindex,
# # Exception|   File "/home/virtme/testing-18/tools/net/ynl/lib/ynl.py", line 1032, in _op
# # Exception|     return self._ops(ops)[0]
# # Exception|   File "/home/virtme/testing-18/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-18/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-18/tools/net/ynl/lib/ynl.py", line 747, in _decode
# # Exception|     decoded = self._decode_enum(decoded, attr_spec)
# # Exception|   File "/home/virtme/testing-18/tools/net/ynl/lib/ynl.py", line 619, in _decode_enum
# # Exception|     value = enum.entries_by_val[raw].name
# # Exception| KeyError: 10745856
# not ok 8 shaper.qgroups
# # Exception| Traceback (most recent call last):
# # Exception|   File "/home/virtme/testing-18/tools/testing/selftests/net/lib/py/ksft.py", line 213, in ksft_run
# # Exception|     case(*args)
# # Exception|   File "/home/virtme/testing-18/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-18/tools/net/ynl/lib/ynl.py", line 1032, in _op
# # Exception|     return self._ops(ops)[0]
# # Exception|   File "/home/virtme/testing-18/tools/net/ynl/lib/ynl.py", line 1004, in _ops
# # Exception|     del reqs_by_seq[nl_msg.nl_seq]
# # Exception| KeyError: 31849
# 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'\x08\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-18/tools/testing/selftests/net/lib/py/ksft.py", line 213, in ksft_run
# # Exception|     case(*args)
# # Exception|   File "/home/virtme/testing-18/tools/testing/selftests/drivers/net/./shaper.py", line 383, in queue_update
# # Exception|     nl_shaper.set({'ifindex': cfg.ifindex,
# # Exception|   File "/home/virtme/testing-18/tools/net/ynl/lib/ynl.py", line 1032, in _op
# # Exception|     return self._ops(ops)[0]
# # Exception|   File "/home/virtme/testing-18/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-18/tools/testing/selftests/drivers/net'
make: Leaving directory '/home/virtme/testing-18/tools/testing/selftests'
xx__-> echo $?
0
xx__->