OSDN Git Service

selftests: mlxsw: avoid double sourcing of lib.sh
authorJiri Pirko <jiri@mellanox.com>
Tue, 12 Feb 2019 16:29:54 +0000 (16:29 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 12 Feb 2019 17:03:29 +0000 (12:03 -0500)
commitf5c7bd93c4f1ddf3a3029f56b277a0013fe96886
tree398de0c28d84bcb3f601eb3182ff9fb6d9de6e1f
parent384c2f7473bc4f6b25f62060ab4d5985726bb12d
selftests: mlxsw: avoid double sourcing of lib.sh

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

Signed-off-by: Jiri Pirko <jiri@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/resource_scale.sh