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)
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

index a0a80e1..e7ffc79 100755 (executable)
@@ -2,7 +2,6 @@
 # SPDX-License-Identifier: GPL-2.0
 
 NUM_NETIFS=6
-source ../../../../net/forwarding/lib.sh
 source ../../../../net/forwarding/tc_common.sh
 source devlink_lib_spectrum.sh