]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
tests: add $top_builddir to $PATH
authorRuediger Meier <ruediger.meier@ga-group.nl>
Mon, 13 Apr 2015 13:51:02 +0000 (15:51 +0200)
committerRuediger Meier <ruediger.meier@ga-group.nl>
Fri, 8 May 2015 13:11:56 +0000 (15:11 +0200)
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 <ruediger.meier@ga-group.nl>
tests/functions.sh

index a624c3e2c3403faca24a9e227d73a371798de7f3..438ca3a2f9f1f583bfa30644f44ba3c453a3b68c 100644 (file)
@@ -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)