[LTP] [PATCH 1/2] tst_kvercmp: Add rhel9 support

Li Wang liwang@redhat.com
Tue Dec 20 05:45:40 CET 2022


On Mon, Dec 19, 2022 at 2:16 PM Yang Xu <xuyang2018.jy@fujitsu.com> wrote:

> Signed-off-by: Yang Xu <xuyang2018.jy@fujitsu.com>
>

Reviewed-by: Li Wang <liwang@redhat.com>

> ---
>  lib/tst_kvercmp.c | 3 +++
>  1 file changed, 3 insertions(+)
>
> diff --git a/lib/tst_kvercmp.c b/lib/tst_kvercmp.c
> index a01b4332b..552920fac 100644
> --- a/lib/tst_kvercmp.c
> +++ b/lib/tst_kvercmp.c
> @@ -140,6 +140,9 @@ const char *tst_kvcmp_distname(const char *kver)
>         if (strstr(kver, ".el8"))
>                 return "RHEL8";
>
> +       if (strstr(kver, ".el9"))
> +               return "RHEL9";
> +
>         if (access(OSRELEASE_PATH, F_OK) != -1) {
>                 SAFE_FILE_LINES_SCANF(NULL, OSRELEASE_PATH, "ID=%s",
> distname);
>
> --
> 2.31.1
>
>

-- 
Regards,
Li Wang


More information about the ltp mailing list