grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 2/2] tests: Give grub-fs-tester temp directory a better name


From: Daniel Kiper
Subject: Re: [PATCH 2/2] tests: Give grub-fs-tester temp directory a better name
Date: Tue, 26 Apr 2022 14:35:42 +0200
User-agent: NeoMutt/20170113 (1.7.2)

On Mon, Apr 18, 2022 at 04:47:21AM +0000, Glenn Washburn wrote:
> On 4/14/22 16:32, Daniel Kiper wrote:
> > On Sat, Apr 09, 2022 at 02:44:47AM +0000, Glenn Washburn wrote:
> > > Instead of "tmp" the name is prefixed by the name of the scripts (eg.
> > > grub-fs-tester). A timestamp is added in the name to allow for easily
> > > seeing a chronological sorting of runs and the name of the filesystem
> > > being tested. The random component is set to the minimal possible, 3
> > > characters, because the timestamp should provide enough uniqueness.
> > >
> > > Signed-off-by: Glenn Washburn <development@efficientek.com>
> > > ---
> > >   tests/util/grub-fs-tester.in | 2 +-
> > >   1 file changed, 1 insertion(+), 1 deletion(-)
> > >
> > > diff --git a/tests/util/grub-fs-tester.in b/tests/util/grub-fs-tester.in
> > > index 868199109f..02edcf897f 100644
> > > --- a/tests/util/grub-fs-tester.in
> > > +++ b/tests/util/grub-fs-tester.in
> > > @@ -7,7 +7,7 @@ fs="$1"
> > >
> > >   GRUBFSTEST="@builddir@/grub-fstest"
> > >
> > > -tempdir=`mktemp -d "${TMPDIR:-/tmp}/tmp.XXXXXXXXXX"` ||
> > > +tempdir=`mktemp -d "${TMPDIR:-/tmp}/${0##*/}.$(date 
> > > '+%Y%m%d%H%M%S%N').${fs}.XXX"` ||
> >
> > I would just s/XXX/tmp/. Otherwise LGTM...
>
> mktemp fails with "too few X's in template" if the minimum number of X's
> (which is 3) are not provided.

Ugh... Well, I should read mktemp man first. Sorry for the noise.
Applied without change...

Thank you for fixing this.

Daniel



reply via email to

[Prev in Thread] Current Thread [Next in Thread]