selftests: mlxsw: Check devlink device before running test
authorDanielle Ratson <danieller@mellanox.com>
Mon, 18 Nov 2019 07:49:59 +0000 (09:49 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Nov 2019 01:11:54 +0000 (17:11 -0800)
commitb22b0b0b10aa16bfe020f0ce506ab78a4d8a5fd4
tree1af63c1adbb0acf7833d953051c8832a2431f51e
parent0fed96fa8342a14de7715fe37ae35cb5775bdced
selftests: mlxsw: Check devlink device before running test

The scale test for Spectrum-2 should only be invoked for Spectrum-2.
Skip the test otherwise.

Signed-off-by: Danielle Ratson <danieller@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/drivers/net/mlxsw/spectrum-2/resource_scale.sh