[LTP] [PATCH 1/2] tst_kvercmp: Add rhel9 support
Jan Stancek
jstancek@redhat.com
Tue Dec 20 08:26:45 CET 2022
On Mon, Dec 19, 2022 at 7:16 AM Yang Xu <xuyang2018.jy@fujitsu.com> wrote:
>
> Signed-off-by: Yang Xu <xuyang2018.jy@fujitsu.com>
For both:
Acked-by: Jan Stancek <jstancek@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
>
More information about the ltp
mailing list