]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
tests: Skip HFS test only when mac_roman module is not loaded and not loadable
authorGlenn Washburn <development@efficientek.com>
Fri, 17 Sep 2021 23:04:01 +0000 (23:04 +0000)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 14 Oct 2021 13:31:33 +0000 (15:31 +0200)
Allow the HFS tests to not be skipped if the mac_roman modules is loaded in
the kernel, but not accessible to modprobe.

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

index d7ec56beffa7909c28636a4af5142a2c8ee334de..5b0c5e33e39474d748e6c9d574db1497f4652a38 100644 (file)
@@ -15,7 +15,7 @@ if ! which mkfs.hfs >/dev/null 2>&1; then
    exit 77
 fi
 
-if ! modprobe mac-roman; then
+if ! grep -q mac_roman /proc/modules && ! modprobe mac_roman; then
    echo "no mac-roman support; cannot test HFS."
    exit 77
 fi