Skip to content

Commit

Permalink
selftests: team: Add shared library scripts to TEST_INCLUDES
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Benjamin Poirier authored and David S. Miller committed Jan 31, 2024
1 parent 6500780 commit 975b4a8
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
6 changes: 3 additions & 3 deletions tools/testing/selftests/drivers/net/team/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

TEST_PROGS := dev_addr_lists.sh

TEST_FILES := \
lag_lib.sh \
net_forwarding_lib.sh
TEST_INCLUDES := \
../bonding/lag_lib.sh \
../../../net/forwarding/lib.sh

include ../../../lib.mk
4 changes: 2 additions & 2 deletions tools/testing/selftests/drivers/net/team/dev_addr_lists.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ ALL_TESTS="
REQUIRE_MZ=no
NUM_NETIFS=0
lib_dir=$(dirname "$0")
source "$lib_dir"/net_forwarding_lib.sh
source "$lib_dir"/../../../net/forwarding/lib.sh

source "$lib_dir"/lag_lib.sh
source "$lib_dir"/../bonding/lag_lib.sh


destroy()
Expand Down
1 change: 0 additions & 1 deletion tools/testing/selftests/drivers/net/team/lag_lib.sh

This file was deleted.

This file was deleted.

0 comments on commit 975b4a8

Please sign in to comment.