[LTP] [PATCH 1/1] tst_test.sh: Remove possible double/trailing slashes from TMPDIR

Petr Vorel pvorel@suse.cz
Wed Apr 26 19:29:52 CEST 2023


Hi Li,

> > > > NFS tests have problem when TMPDIR path contains double slashes,
> > > > because they grep exportfs output which is normalized.


> > > I'm ok to remove redundant slashes, I just wondering where
> > > is the second slash comes from?
> > > Is that added by accident when env variable definition?

> > Yes, that's the last slash in TMPDIR=/var/tmp/.
> > TMPDIR=/var/tmp would work.


> Ok, I agree with the secondary treatment inside lib (includes C API),
> as we can't grantee the all users to remember this trivial.

> Reviewed-by: Li Wang <liwang@redhat.com>

thanks, merged!

Kind regards,
Petr


More information about the ltp mailing list