]> git.ipfire.org Git - thirdparty/grub.git/commit
tests: Add /sbin and /usr/sbin to path in partmap test
authorGlenn Washburn <development@efficientek.com>
Thu, 12 May 2022 03:19:45 +0000 (22:19 -0500)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 7 Jun 2022 10:40:52 +0000 (12:40 +0200)
commitdaf96d31abe500d7c36a1af320df446921cd9a5c
treef1ae9172af61a55c715abcef65a0cd1f56cedc64
parent6911dbdc62c389e73a9e1e4d5eb8ba1af2358190
tests: Add /sbin and /usr/sbin to path in partmap test

The partmap test requires no elevated privileges. However, it uses parted
which can be used as a normal user, but is usually located in /sbin or
/usr/bin (eg. on Debian systems). Whereas the normal user does not usually
have /sbin or /usr/sbin added to their path, thus parted will not be found
causing the test to abort. Add /sbin and /usr/sbin to the path for the
partmap test so that the test can run successfully as an unprivileged user.

Signed-off-by: Glenn Washburn <development@efficientek.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
tests/partmap_test.in