[LTP] [PATCH v2 0/4] shell loader rewrite to support TST_SETUP
Cyril Hrubis
chrubis@suse.cz
Fri May 2 10:51:46 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.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list