* [PATCH] tests/util/grub-fs-tester: Remove unused variable
@ 2023-02-05 0:26 Glenn Washburn
2023-02-05 0:26 ` [PATCH] tests/util/grub-fs-tester: Use shell variable instead of autoconf Glenn Washburn
2023-02-08 18:40 ` [PATCH] tests/util/grub-fs-tester: Remove unused variable Daniel Kiper
0 siblings, 2 replies; 4+ messages in thread
From: Glenn Washburn @ 2023-02-05 0:26 UTC (permalink / raw)
To: grub-devel, Daniel Kiper; +Cc: Glenn Washburn
Signed-off-by: Glenn Washburn <development@efficientek.com>
---
tests/util/grub-fs-tester.in | 2 --
1 file changed, 2 deletions(-)
diff --git a/tests/util/grub-fs-tester.in b/tests/util/grub-fs-tester.in
index fd500ff8a0..064464eb2d 100644
--- a/tests/util/grub-fs-tester.in
+++ b/tests/util/grub-fs-tester.in
@@ -654,7 +654,6 @@ for LOGSECSIZE in $(range "$MINLOGSECSIZE" "$MAXLOGSECSIZE" 1); do
PFIL="p.img"
unset LODEVICES
- GENERATED=n
LODEVICES=
MOUNTDEVICE=
@@ -665,7 +664,6 @@ for LOGSECSIZE in $(range "$MINLOGSECSIZE" "$MAXLOGSECSIZE" 1); do
| xrockridge_joliet_1999)
MNTPOINTRW="$MASTER"
MNTPOINTRO="$MASTER"
- GENERATED=y
mkdir -p "$MASTER";;
# No mkfs for GNU/Linux. Just unpack preformatted empty image
*)
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] tests/util/grub-fs-tester: Use shell variable instead of autoconf
2023-02-05 0:26 [PATCH] tests/util/grub-fs-tester: Remove unused variable Glenn Washburn
@ 2023-02-05 0:26 ` Glenn Washburn
2023-02-08 18:41 ` Daniel Kiper
2023-02-08 18:40 ` [PATCH] tests/util/grub-fs-tester: Remove unused variable Daniel Kiper
1 sibling, 1 reply; 4+ messages in thread
From: Glenn Washburn @ 2023-02-05 0:26 UTC (permalink / raw)
To: grub-devel, Daniel Kiper; +Cc: Glenn Washburn
By using a shell variable that is set once by the expansion of an autoconf
variable, the resulting script is more readable.
Signed-off-by: Glenn Washburn <development@efficientek.com>
---
tests/util/grub-fs-tester.in | 19 ++++++++++---------
1 file changed, 10 insertions(+), 9 deletions(-)
diff --git a/tests/util/grub-fs-tester.in b/tests/util/grub-fs-tester.in
index 63a38ec2bb..fd500ff8a0 100644
--- a/tests/util/grub-fs-tester.in
+++ b/tests/util/grub-fs-tester.in
@@ -10,6 +10,7 @@ unset SOURCE_DATE_EPOCH
fs="$1"
+builddir="@builddir@"
GRUBFSTEST="@builddir@/grub-fstest"
GRUBPROBE="@builddir@/grub-probe"
@@ -1046,18 +1047,18 @@ for LOGSECSIZE in $(range "$MINLOGSECSIZE" "$MAXLOGSECSIZE" 1); do
# OS LIMITATION: No AFS support under GNU/Linux
mkdir "$MNTPOINTRW/$OSDIR/sdir"
mkdir -p "$MNTPOINTRW/$OSDIR/$PDIR"
- "@builddir@"/garbage-gen $BLOCKCNT > "$MNTPOINTRW/$OSDIR/sdir/2.img"
- "@builddir@"/garbage-gen $BLOCKCNT > "$MNTPOINTRW/$OSDIR/$BASEFILE"
- "@builddir@"/garbage-gen $BLOCKCNT > "$MNTPOINTRW/$OSDIR/$NASTYFILE"
- "@builddir@"/garbage-gen $BLOCKCNT > "$MNTPOINTRW/$OSDIR/$IFILE"
- "@builddir@"/garbage-gen $BLOCKCNT > "$MNTPOINTRW/$OSDIR/$LONGNAME"
- "@builddir@"/garbage-gen $BLOCKCNT > "$MNTPOINTRW/$OSDIR/$PDIR/$PFIL"
+ "$builddir"/garbage-gen $BLOCKCNT > "$MNTPOINTRW/$OSDIR/sdir/2.img"
+ "$builddir"/garbage-gen $BLOCKCNT > "$MNTPOINTRW/$OSDIR/$BASEFILE"
+ "$builddir"/garbage-gen $BLOCKCNT > "$MNTPOINTRW/$OSDIR/$NASTYFILE"
+ "$builddir"/garbage-gen $BLOCKCNT > "$MNTPOINTRW/$OSDIR/$IFILE"
+ "$builddir"/garbage-gen $BLOCKCNT > "$MNTPOINTRW/$OSDIR/$LONGNAME"
+ "$builddir"/garbage-gen $BLOCKCNT > "$MNTPOINTRW/$OSDIR/$PDIR/$PFIL"
if [ $PDIR != $PDIR2 ]; then
- "@builddir@"/garbage-gen $BLOCKCNT > "$MNTPOINTRW/$OSDIR/${PDIR2}/$PFIL"
+ "$builddir"/garbage-gen $BLOCKCNT > "$MNTPOINTRW/$OSDIR/${PDIR2}/$PFIL"
fi
- "@builddir@"/garbage-gen $BLOCKCNT > "$MNTPOINTRW/$OSDIR/CaSe"
+ "$builddir"/garbage-gen $BLOCKCNT > "$MNTPOINTRW/$OSDIR/CaSe"
if [ x$CASESENS = xy ]; then
- "@builddir@"/garbage-gen $BLOCKCNT > "$MNTPOINTRW/$OSDIR/cAsE"
+ "$builddir"/garbage-gen $BLOCKCNT > "$MNTPOINTRW/$OSDIR/cAsE"
fi
if (test x$fs = xvfat12a || test x$fs = xmsdos12a) && test x$BLKSIZE = x131072; then
# With this config there isn't enough space for full copy.
--
2.34.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] tests/util/grub-fs-tester: Remove unused variable
2023-02-05 0:26 [PATCH] tests/util/grub-fs-tester: Remove unused variable Glenn Washburn
2023-02-05 0:26 ` [PATCH] tests/util/grub-fs-tester: Use shell variable instead of autoconf Glenn Washburn
@ 2023-02-08 18:40 ` Daniel Kiper
1 sibling, 0 replies; 4+ messages in thread
From: Daniel Kiper @ 2023-02-08 18:40 UTC (permalink / raw)
To: Glenn Washburn; +Cc: grub-devel
On Sat, Feb 04, 2023 at 06:26:06PM -0600, Glenn Washburn wrote:
> Signed-off-by: Glenn Washburn <development@efficientek.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Daniel
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] tests/util/grub-fs-tester: Use shell variable instead of autoconf
2023-02-05 0:26 ` [PATCH] tests/util/grub-fs-tester: Use shell variable instead of autoconf Glenn Washburn
@ 2023-02-08 18:41 ` Daniel Kiper
0 siblings, 0 replies; 4+ messages in thread
From: Daniel Kiper @ 2023-02-08 18:41 UTC (permalink / raw)
To: The development of GNU GRUB; +Cc: Glenn Washburn
On Sat, Feb 04, 2023 at 06:26:07PM -0600, Glenn Washburn wrote:
> By using a shell variable that is set once by the expansion of an autoconf
> variable, the resulting script is more readable.
>
> Signed-off-by: Glenn Washburn <development@efficientek.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Daniel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-02-08 18:41 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-05 0:26 [PATCH] tests/util/grub-fs-tester: Remove unused variable Glenn Washburn
2023-02-05 0:26 ` [PATCH] tests/util/grub-fs-tester: Use shell variable instead of autoconf Glenn Washburn
2023-02-08 18:41 ` Daniel Kiper
2023-02-08 18:40 ` [PATCH] tests/util/grub-fs-tester: Remove unused variable Daniel Kiper
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.