From: Petr Vorel <pvorel@suse.cz>
To: ltp@lists.linux.it
Subject: Re: [LTP] [RFC][PATCH 2/3] tst_test: Allow test to suggest reboot via $TST_REBOOT
Date: Wed, 26 Feb 2025 15:33:03 +0100 [thread overview]
Message-ID: <20250226143303.GA3016635@pevik> (raw)
In-Reply-To: <20250226143113.3016480-2-pvorel@suse.cz>
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
--
Mailing list info: https://lists.linux.it/listinfo/ltp
next prev parent reply other threads:[~2025-02-26 14:33 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-26 14:31 [LTP] [PATCH 1/3] setup_tests: Sort variables alphabetically Petr Vorel
2025-02-26 14:31 ` [LTP] [RFC][PATCH 2/3] tst_test: Allow test to suggest reboot via $TST_REBOOT Petr Vorel
2025-02-26 14:33 ` Petr Vorel [this message]
2025-07-16 6:54 ` Petr Vorel
2025-02-26 14:31 ` [LTP] [PATCH 3/3] ima_setup.sh: Use $TST_REBOOT Petr Vorel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250226143303.GA3016635@pevik \
--to=pvorel@suse.cz \
--cc=ltp@lists.linux.it \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox