[LTP] [PATCH v2 0/4] shell loader rewrite to support TST_SETUP
Petr Vorel
pvorel@suse.cz
Wed May 7 00:04:41 CEST 2025
> Hi!
> > we are getting there, but not yet finished.
> > one remaining problem - it requires *full* path in PATH. I wonder what
> > basic I'm missing. The current change requires to use full path
> > otherwise execvpe() fails.
> > I suppose it is due change cwd due creating temporary directory - it
> > fails only with:
> > "needs_tmpdir": true
> > shell_loader_setup_cleanup.sh does not suffer this problem.
> > It's also not dash related, problem is on bash as well.
> That is exactly it. The test cannot run scripts that it cannot find so
> we need an absolute path to the directory the scripts are in. If you
> look at run_tests.sh we do srcdir=$(realpath $(dirname $0)) and prefix
> all the paths with that directory.
+1, thanks for the reminder (I forget my code :), we were discussing it
together). I see whether I add it to tst_loader.sh or tst_env.sh.
Kind regards,
Petr
More information about the ltp
mailing list