[LTP] [PATCH] cpu_hotplug: Add executable file's path
Cyril Hrubis
chrubis@suse.cz
Tue Feb 23 11:14:29 CET 2021
Hi!
> Thanks for your review!
>
> In many embedded system, before running testcases we need type in the following lines:
>
> #export LTPROOT=/opt/ltp
> #export PATH="$PATH:$LTPROOT/testcases/bin"
> # cpuhotplug02.sh -c 1 -l 1
>
> It is not convenient for running test after every login.
This is what you have to do if you are not using the runltp script and
that's it. We will not add workarounds into our testcases.
Also nobody stops you from writing a short wrapper script such as:
$ cat run_test.sh
#!/bin/sh
export LTPROOT=/opt/ltp
export PATH="$PATH:$LTPROOT/testcases/bin"
$@
And then using it as:
./run_test.sh cpuhotplug02.sh -c 1 -l 1
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list