test: Fix chroot not in PATH

Signed-off-by: Jacques de Laval <jacques@de-laval.se>
This commit is contained in:
Jacques de Laval committed 2021-02-20 13:06:28 +01:00
1 parent 99ad26236e
commit 7965dbd13f
3 files changed
+7 -3

No files matched your search

+2 -1
View File
@@ -14,6 +14,7 @@ TEST_DIR=$(dirname "$0")
TESTS_ROOT="$(pwd)/${TEST_DIR}/test_root"
nsenter=$(which nsenter)
chroot=$(which chroot)
export PATH=/sbin:/bin
"$nsenter" \
@@ -25,4 +26,4 @@ export PATH=/sbin:/bin
--net \
--pid \
-w -t "$target" \
chroot "$TESTS_ROOT" "$@"
"$chroot" "$TESTS_ROOT" "$@"