Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests: team: Add shared library scripts to TEST_INCLUDES

In order to avoid duplicated files when both the team and bonding tests are
exported together, add lag_lib.sh to TEST_INCLUDES.

Do likewise for net/forwarding/lib.sh regarding team and forwarding tests.

Reviewed-by: Petr Machata <petrm@nvidia.com>
Tested-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Hangbin Liu <liuhangbin@gmail.com>
Signed-off-by: Benjamin Poirier <bpoirier@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Benjamin Poirier and committed by
David S. Miller
975b4a8b 6500780c

+5 -5
+3 -3
tools/testing/selftests/drivers/net/team/Makefile
··· 3 3 4 4 TEST_PROGS := dev_addr_lists.sh 5 5 6 - TEST_FILES := \ 7 - lag_lib.sh \ 8 - net_forwarding_lib.sh 6 + TEST_INCLUDES := \ 7 + ../bonding/lag_lib.sh \ 8 + ../../../net/forwarding/lib.sh 9 9 10 10 include ../../../lib.mk
+2 -2
tools/testing/selftests/drivers/net/team/dev_addr_lists.sh
··· 11 11 REQUIRE_MZ=no 12 12 NUM_NETIFS=0 13 13 lib_dir=$(dirname "$0") 14 - source "$lib_dir"/net_forwarding_lib.sh 14 + source "$lib_dir"/../../../net/forwarding/lib.sh 15 15 16 - source "$lib_dir"/lag_lib.sh 16 + source "$lib_dir"/../bonding/lag_lib.sh 17 17 18 18 19 19 destroy()