When the build of tests outputs into an another directory (e.g. ./testdir)
and 'make check' is running from there, pktio_run will run from the original
source dir, so $(dirname $0)/../../../../test/validation/pktio will point to
the original source as well. But pktio_main is in the build output dir.
This patch adds that to the path. This should particularly happen in CI.
Signed-off-by: Zoltan Kiss <zoltan.kiss(a)linaro.org>
---
I still don't know why this isn't a problem in linux-generic when building with
CI.
platform/linux-dpdk/test/pktio/pktio_run | 1 +
1 file changed, 1 insertion(+)
diff --git a/platform/linux-dpdk/test/pktio/pktio_run b/platform/linux-dpdk/test/pktio/pktio_run
index 28b8d3b..3dbf1b9 100755
--- a/platform/linux-dpdk/test/pktio/pktio_run
+++ b/platform/linux-dpdk/test/pktio/pktio_run
@@ -15,6 +15,7 @@
PATH=${TEST_DIR}/pktio:$PATH
PATH=$(dirname $0):$PATH
PATH=$(dirname $0)/../../../../test/validation/pktio:$PATH
+PATH=${PWD}/../../../test/validation/pktio:$PATH
PATH=.:$PATH
pktio_main_path=$(which pktio_main${EXEEXT})
--
1.9.1