]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
tests: F2FS test should use MOUNTDEVICE like other tests
authorGlenn Washburn <development@efficientek.com>
Fri, 28 Aug 2020 23:30:25 +0000 (18:30 -0500)
committerDaniel Kiper <daniel.kiper@oracle.com>
Fri, 18 Sep 2020 20:31:30 +0000 (22:31 +0200)
LODEVICES is not an array variable and should not be accessed as such.
This allows the f2fs test to pass as it was failing because a device
name had a space prepended to the path.

Signed-off-by: Glenn Washburn <development@efficientek.com>
Acked-by: Jaegeuk Kim <jaegeuk@kernel.org>
Tested-by: Paul Menzel <pmenzel@molgen.mpg.de>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
tests/util/grub-fs-tester.in

index bc14a05ca3686e14002da96b0ba401b2d4d87bc0..bfc425e1fd7fc7b1b535c415ae4ee2efd9edcfc3 100644 (file)
@@ -796,7 +796,7 @@ for LOGSECSIZE in $(range "$MINLOGSECSIZE" "$MAXLOGSECSIZE" 1); do
                    MOUNTFS=ext2
                    "mkfs.ext2" -L "$FSLABEL" -q "${MOUNTDEVICE}"  ;;
                xf2fs)
-                   "mkfs.f2fs" -l "$FSLABEL" -q "${LODEVICES[0]}" ;;
+                   "mkfs.f2fs" -l "$FSLABEL" -q "${MOUNTDEVICE}" ;;
                xnilfs2)
                    "mkfs.nilfs2" -L "$FSLABEL" -b $BLKSIZE  -q "${MOUNTDEVICE}" ;;
                xext2_old)