[LTP] [PATCH v2 2/4] lib: Introduce LTP_KCONFIG_DISABLE environment variables

Petr Vorel pvorel@suse.cz
Thu Jan 6 10:49:09 CET 2022


Hi Xu,

> diff --git a/doc/user-guide.txt b/doc/user-guide.txt
...
> +| 'LTP_KCONFIG_DISABLE' | Switch for kernel config check functionality.
> +                          'y' or '1': disable kconfig check,
> +                          'n' or '0': enable kconfig check.
Not sure if you got inspired by LTP_COLORIZE_OUTPUT, which also uses y/1 or n/0
input, but I'd really stick just to LTP_KCONFIG_DISABLE=1 to disable kconfig check.
By default kconfig check would be kept.

LTP_COLORIZE_OUTPUT has more complicated the default value, because it's on by
default when print to stderr, but off when redirected (we should document it in
doc/user-guide.txt). But there is no reason have way to configure the default
value.

But maybe others see it differently.

And writing it today I'd have probably chosen for LTP_KCONFIG_DISABLE only one:
y/n or 1/0.

Kind regards,
Petr


More information about the ltp mailing list