[LTP] [RFC PATCH 1/2] Add support for mixing C and shell code

Cyril Hrubis chrubis@suse.cz
Tue Jul 30 11:49:45 CEST 2024


Hi!
> $PWD is not the correct path. It should be set as follows:
> 
> testdir=$(dirname $0)
> export PATH=$PATH:$testdir:$testdir/tests/

This does not work for tests that have .needs_tmpdir because $(dirname
$0) is '.' I suppose that we need realpath as well:

testdir=$(realpath $(dirname $0))

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list