scoutfs-tests: prepend our paths to PATH

We add directories of our built binaries for tests to find.  Let's
prepend them to PATH so that we find them before any installed
binaries in the system.

Signed-off-by: Zach Brown <zab@versity.com>
This commit is contained in:
Zach Brown
2020-02-25 12:04:44 -08:00
committed by Zach Brown
parent 4c225c2061
commit 503011b777
+4 -4
View File
@@ -262,8 +262,8 @@ if [ -n "$T_UTILS_REPO" ]; then
cmd sync
cmd cd -
# we can now run the built scoutfs binary
PATH="$PATH:$T_UTILS_REPO/src"
# we can now run the built scoutfs binary, prefer over installed
PATH="$T_UTILS_REPO/src:$PATH"
fi
# verify xfstests branch
@@ -389,8 +389,8 @@ fi
. funcs/exec.sh
. funcs/filter.sh
# give tests access to built binaries in src/
PATH="$PATH:$PWD/src"
# give tests access to built binaries in src/, prefer over installed
PATH="$PWD/src:$PATH"
msg "running tests"
> "$T_RESULTS/skip.log"