selftests: forwarding: devlink_lib: Avoid double sourcing of lib.sh
authorPetr Machata <petrm@mellanox.com>
Thu, 28 Mar 2019 12:12:23 +0000 (12:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Mar 2019 00:20:52 +0000 (17:20 -0700)
commit2cca8751af36d5f84eaa05d63632afa25a523b69
tree66548fb9c419e0d020146b1c018e42ae9d444b15
parent2fcbc0b15e39019e84863a69c822b3c3103cfd56
selftests: forwarding: devlink_lib: Avoid double sourcing of lib.sh

Don't source lib.sh twice and make the script work with ifnames passed
on the command line.

Signed-off-by: Petr Machata <petrm@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/tc_flower.sh
tools/testing/selftests/drivers/net/mlxsw/spectrum/devlink_resources.sh
tools/testing/selftests/drivers/net/mlxsw/spectrum/resource_scale.sh
tools/testing/selftests/net/forwarding/devlink_lib.sh