Skip to content

Commit 248ce64

Browse files
spikehNipaLocal
authored andcommitted
selftests: netdevsim: improve lib.sh include in peer.sh
Fix the peer.sh test to run from INSTALL_PATH. Signed-off-by: David Wei <[email protected]> Signed-off-by: NipaLocal <nipa@local>
1 parent 6942452 commit 248ce64

File tree

1 file changed

+2
-1
lines changed
  • tools/testing/selftests/drivers/net/netdevsim

1 file changed

+2
-1
lines changed

tools/testing/selftests/drivers/net/netdevsim/peer.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/bin/bash
22
# SPDX-License-Identifier: GPL-2.0-only
33

4-
source ../../../net/lib.sh
4+
lib_dir=$(dirname $0)/../../../net
5+
source $lib_dir/lib.sh
56

67
NSIM_DEV_1_ID=$((256 + RANDOM % 256))
78
NSIM_DEV_1_SYS=/sys/bus/netdevsim/devices/netdevsim$NSIM_DEV_1_ID

0 commit comments

Comments
 (0)