All of lore.kernel.org
 help / color / mirror / Atom feed
* Quoting issues in Bash script `grub-fs-tester` causes F2FS test failure
@ 2020-08-28  9:19 Paul Menzel
  2020-08-28 23:30 ` [PATCH] tests: F2FS test should use MOUNTDEVICE like other tests Glenn Washburn
  0 siblings, 1 reply; 5+ messages in thread
From: Paul Menzel @ 2020-08-28  9:19 UTC (permalink / raw)
  To: The development of GNU GRUB; +Cc: Jaegeuk Kim

Dear GRUB folks,


Running `sudo env make -e check VERBOSE=yes SUBDIRS=` the F2FS is one of 
the two tests failing. It returns 255.

Running only the specific test

     sudo env TESTS=f2fs_test make -e check VERBOSE=yes SUBDIRS=

which runs

     sudo ./grub-fs-tester f2fs

and using `set -ex` in `grub-fs-tester` the call below has quoting issues.

                 xf2fs)
                     "mkfs.f2fs" -l "$FSLABEL" -q "${LODEVICES[0]}"

fails due to the loop device being passed in single quotes, which does 
not exist with the leading space.

      + LODEVICE=/dev/loop11
      + LODEVICES=' /dev/loop11'

      + mkfs.f2fs -l 
'grub_;/testé䏌䐓䏕киритiurewfceniuewruewnuuireurevueurnievrewfnerfcnevirivinrewvnirewnivrewiuvcrewvnuewvrrrewniuerwreiuviurewiuviurewnuvewnvrenurnunuvrevuurerejiremvreijnvvcreivire 
nverivnreivrevnureiorfnfrvoeoiroireoireoifrefoieroifoirvcreivire 
nverivnreivrevnureiorfnfrvoeoiroireoireoifrefoieroifoircreivire 
nverivnreivrevnureiorfnfrvoeoiroireoireoifrefoieroifoireoifoiq' -q ' 
/dev/loop11'
      FAIL f2fs_test (exit status: 255)

Is there a Bash expert in here, able to fix it?


Kind regards,

Paul


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-09-18  7:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-28  9:19 Quoting issues in Bash script `grub-fs-tester` causes F2FS test failure Paul Menzel
2020-08-28 23:30 ` [PATCH] tests: F2FS test should use MOUNTDEVICE like other tests Glenn Washburn
2020-09-17 14:19   ` Daniel Kiper
2020-09-17 16:34     ` Jaegeuk Kim
2020-09-18  7:06   ` Paul Menzel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.