mirror of
https://github.com/troglobit/finit.git
synced 2026-10-16 10:39:35 +00:00
test: Fix chroot not in PATH
Signed-off-by: Jacques de Laval <jacques@de-laval.se>
This commit is contained in:
1 parent
99ad26236e
commit
7965dbd13f
3 files changed
+7
-3
No files matched your search
@@ -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" "$@"
|
||||
Reference in new issue
Block a user