test-repart: append /sbin and /usr/sbin to $PATH= to make sfdisk can be found

Fixes #21972.
This commit is contained in:
Yu Watanabe
2022-01-05 09:31:28 +09:00
parent 31cf58864d
commit 329a5b91d9
+2
View File
@@ -8,6 +8,8 @@ set -o pipefail
repart="${1:?}"
test -x "$repart"
PATH=$PATH:/sbin:/usr/sbin
D="$(mktemp --tmpdir --directory "test-repart.XXXXXXXXXX")"
# shellcheck disable=SC2064