[LTP] [PATCH 1/2] tst_test: Add $LTP_SINGLE_ITERATION to limit variant

Li Wang liwang@redhat.com
Mon Feb 24 11:32:14 CET 2025


On Mon, Feb 24, 2025 at 6:21 PM Petr Vorel <pvorel@suse.cz> wrote:

> Hi Li,
>
> > > Hi all,
>
> > > Andrea wanted to run only single variant.
>
> > Could you tell me what the benefit is? why do we need this?
>
> @Andrea ^
>
> IMHO similar to LTP_SINGLE_FS_TYPE - speedup. Although I admit
> LTP_SINGLE_FS_TYPE allows much bigger cleanup.
>
> > And back to the patch itself, if LTP_SINGLE_ITERATION is used, which
> > variant will be chosen to run by default? Is that expected?
>
> By default all variants are tested.
>

Sorry, here I wanted to ask:
 Which variant will be selected when LTP_SINGLE_VARIANT is set?
 Is the selected variant the expected one?

Since the order of test variants is not standardized and is determined
by the author while test writing. Once we used LTP_SINGLE_VARIANT
it still does not guarantee the executed variant is the same for all tests.
Unless people only use it in manual debugging mode.


-- 
Regards,
Li Wang


More information about the ltp mailing list