From 503011b777d5f5bb7d02d7d9e830875b1ea5ebab Mon Sep 17 00:00:00 2001 From: Zach Brown Date: Thu, 23 Jan 2020 10:05:11 -0800 Subject: [PATCH] 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 --- tests/run-tests.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/run-tests.sh b/tests/run-tests.sh index c5a51e0f..a2b858f5 100755 --- a/tests/run-tests.sh +++ b/tests/run-tests.sh @@ -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"