summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorPo-Hsu Lin <po-hsu.lin@canonical.com>2021-05-20 13:49:54 +0300
committerDavid S. Miller <davem@davemloft.net>2021-05-21 01:46:57 +0300
commit25173dd4093a24e977e2af9cd5654c205bf13547 (patch)
treee9ec7ca7de2ce37d4e609d70a3d5a11e1b6e93fb /tools/perf/scripts/python/exported-sql-viewer.py
parent07b5dc1d515a9a9b3973e0bdc716a78adf6db8f8 (diff)
downloadlinux-25173dd4093a24e977e2af9cd5654c205bf13547.tar.xz
selftests: net: devlink_port_split.py: skip the test if no devlink device
When there is no devlink device, the following command will return: $ devlink -j dev show {dev:{}} This will cause IndexError when trying to access the first element in dev of this json dataset. Use the kselftest framework skip code to skip this test in this case. Example output with this change: # selftests: net: devlink_port_split.py # no devlink device was found, test skipped ok 7 selftests: net: devlink_port_split.py # SKIP Link: https://bugs.launchpad.net/bugs/1928889 Signed-off-by: Po-Hsu Lin <po-hsu.lin@canonical.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions