From: Ruediger Meier Date: Mon, 13 Apr 2015 13:51:02 +0000 (+0200) Subject: tests: add $top_builddir to $PATH X-Git-Tag: v2.27-rc1~203^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ba0bfbb5102dccd2d3b82a8f1aff63fe900ee4f;p=thirdparty%2Futil-linux.git tests: add $top_builddir to $PATH Since we have dropped some more hardcoded search paths we should make sure that our tested binaries would use the right helpers from our build directory. See 07b51567 and follow-up commits. Signed-off-by: Ruediger Meier --- diff --git a/tests/functions.sh b/tests/functions.sh index a624c3e2c3..438ca3a2f9 100644 --- a/tests/functions.sh +++ b/tests/functions.sh @@ -222,6 +222,9 @@ function ts_init_env { top_srcdir=$(ts_abspath $top_srcdir) top_builddir=$(ts_abspath $top_builddir) + # some ul commands search other ul commands in $PATH + export PATH="$top_builddir:$PATH" + TS_SCRIPT="$mydir/$(basename $0)" TS_SUBDIR=$(dirname $TS_SCRIPT) TS_TESTNAME=$(basename $TS_SCRIPT)