[LTP] [PATCH v2 2/4] lib: Introduce LTP_KCONFIG_DISABLE environment variables
Petr Vorel
pvorel@suse.cz
Thu Jan 6 10:52:47 CET 2022
Hi Xu,
> +| 'LTP_KCONFIG_DISABLE' | Switch for kernel config check functionality.
> + 'y' or '1': disable kconfig check,
> + 'n' or '0': enable kconfig check.
Also, regardless if we keep it this way, it's worth to mention the default
value.
> int tst_kconfig_check(const char *const kconfigs[])
> {
> size_t expr_cnt = array_len(kconfigs);
> @@ -485,6 +506,11 @@ int tst_kconfig_check(const char *const kconfigs[])
> unsigned int i, var_cnt;
> int ret = 0;
> + if (tst_kconfig_disabled()) {
> + tst_res(TINFO, "Kernel config check functionality has been disabled.");
nit: please avoid the dot :).
Kind regards,
Petr
More information about the ltp
mailing list