[LTP] [RFC][PATCH 2/3] tst_test: Allow test to suggest reboot via $TST_REBOOT
Petr Vorel
pvorel@suse.cz
Wed Feb 26 15:33:03 CET 2025
Hi,
> Frameworks/tooling which run LTP can schedule reboot based on
> environment variable.
> Signed-off-by: Petr Vorel <pvorel@suse.cz>
> ---
> If useful, I should probably add it to C API as well
> (at least swapoff01.c and swapon01.c print also "reboot recommended").
> doc/users/setup_tests.rst | 3 +++
> testcases/lib/tst_test.sh | 7 ++++++-
> 2 files changed, 9 insertions(+), 1 deletion(-)
> diff --git a/doc/users/setup_tests.rst b/doc/users/setup_tests.rst
> index ddcf00f027..0cdb86715f 100644
> --- a/doc/users/setup_tests.rst
> +++ b/doc/users/setup_tests.rst
> @@ -85,6 +85,9 @@ users.
> * - LTP_ENABLE_DEBUG
> - Enable debug info (value ``1`` or ``y``). Equivalent of ``-D`` parameter.
> + * - TST_REBOOT
> + - Environment variable set by LTP test to signalize that SUT should be rebooted.
Obviously TST_REBOOT would be then used by frameworks (kirk, openQA, ...).
Kind regards,
Petr
More information about the ltp
mailing list