]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
tests/erofs_test: Remove root check
authorGlenn Washburn <development@efficientek.com>
Thu, 13 Nov 2025 03:10:40 +0000 (21:10 -0600)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 18 Nov 2025 11:49:32 +0000 (12:49 +0100)
The erofs tests do not ever mount the generated erofs image. So root is
not needed, as with the squashfs and iso9660 filesystems.

Signed-off-by: Glenn Washburn <development@efficientek.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Reviewed-by: Sudhakar Kuppusamy <sudhakar@linux.ibm.com>
tests/erofs_test.in

index e3f3ea5eb409d33e5d591f15c419cc2d96ddd65c..f8cf3bb8b47fc9f4c5e67f17d5687aaea8501fab 100644 (file)
@@ -2,14 +2,6 @@
 
 set -ex
 
-if [ "x$EUID" = "x" ] ; then
-  EUID=`id -u`
-fi
-
-if [ "$EUID" != 0 ] ; then
-   exit 99
-fi
-
 if ! which mkfs.erofs >/dev/null 2>&1; then
    echo "mkfs.erofs not installed; cannot test erofs."
    exit 77