From 1a8fd875f0b171e25a5ac8a32cc81ff3887935bd Mon Sep 17 00:00:00 2001 From: Mariano Lopez Date: Tue, 9 Apr 2019 00:44:14 -0500 Subject: util-linux: Use PTEST binary directory Some binaries generated by util-linux will be replaced by core-utils in the final image by update-alternatives, so use a dedicated directory with symlinks to avoid using a binary generated by another package. This will solve the issue with the ptest runner timing out when running the kill ptests for util-linux. [YOCTO #13238] Signed-off-by: Mariano Lopez Signed-off-by: Richard Purdie --- meta/recipes-core/util-linux/util-linux/run-ptest | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'meta/recipes-core/util-linux/util-linux/run-ptest') diff --git a/meta/recipes-core/util-linux/util-linux/run-ptest b/meta/recipes-core/util-linux/util-linux/run-ptest index 8c57bd2074..03248325bf 100644 --- a/meta/recipes-core/util-linux/util-linux/run-ptest +++ b/meta/recipes-core/util-linux/util-linux/run-ptest @@ -1,5 +1,9 @@ #!/bin/sh +current_path=$(readlink -f $0) +export bindir=$(dirname $current_path) +export PATH=$bindir/bin:$PATH + cd tests || exit 1 comps=$(find ts/ -type f -perm -111 -regex ".*/[^\.~]*" | sort) -- cgit 1.2.3-korg