From 4fbfe0b34e624a3402bfa0daee65d2762af9f2b5 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Mon, 27 Mar 2023 23:14:42 -0700 Subject: [PATCH] test-imagex-ntfs: find mkntfs on Debian Add /sbin to the PATH so that mkntfs is found on Debian. --- tests/test-imagex-ntfs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test-imagex-ntfs b/tests/test-imagex-ntfs index f22198fb..f1a0f910 100755 --- a/tests/test-imagex-ntfs +++ b/tests/test-imagex-ntfs @@ -16,6 +16,9 @@ srcdir="$(cd $srcdir; pwd)" TEST_SUBDIR=tmpdir_test-imagex-ntfs +# In Debian, mkntfs is at /sbin/mkntfs but /sbin is not on the $PATH by default. +PATH+=":/sbin" + __do_unmount() { for ((i = 0; i < 10; i++)); do if fusermount -z -u $1; then @@ -59,7 +62,7 @@ do_mount() { } do_mkntfs() { - if ! mkntfs --force --fast $1 > /dev/null; then + if ! mkntfs --force --fast $1 >/dev/null; then error "Could not create NTFS volume \"$1\"! Make sure ntfsprogs are installed." fi } -- 2.43.0