selftest: Update PATH for nettest in fcnal-test
authorDavid Ahern <dsahern@kernel.org>
Wed, 24 Jan 2024 21:41:15 +0000 (14:41 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 26 Jan 2024 01:14:11 +0000 (17:14 -0800)
Allow fcnal-test.sh to be run from top level directory in the
kernel repo as well as from tools/testing/selftests/net by
setting the PATH to find the in-tree nettest.

Signed-off-by: David Ahern <dsahern@kernel.org>
Link: https://lore.kernel.org/r/20240124214117.24687-2-dsahern@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/fcnal-test.sh

index 0d4f252427e2fdf977c68baf40b9a6ce6abac1ca..3d69fac6bcc0559a5bc9fa7e1385439d6adcfca0 100755 (executable)
@@ -38,6 +38,9 @@
 # server / client nomenclature relative to ns-A
 
 source lib.sh
+
+PATH=$PWD:$PWD/tools/testing/selftests/net:$PATH
+
 VERBOSE=0
 
 NSA_DEV=eth1