We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b14b27f commit 557c4d2Copy full SHA for 557c4d2
tools/testing/selftests/net/forwarding/devlink_lib.sh
@@ -18,6 +18,12 @@ if [[ ! -v DEVLINK_DEV ]]; then
18
19
DEVLINK_VIDDID=$(lspci -s $(echo $DEVLINK_DEV | cut -d"/" -f2) \
20
-n | cut -d" " -f3)
21
+else
22
+ devlink dev show $DEVLINK_DEV &> /dev/null
23
+ if [ $? -ne 0 ]; then
24
+ echo "SKIP: devlink device \"$DEVLINK_DEV\" not found"
25
+ exit 1
26
+ fi
27
fi
28
29
##############################################################################
0 commit comments