[LTP] [PATCH 1/2] tst_kvercmp: Add rhel9 support
xuyang2018.jy@fujitsu.com
xuyang2018.jy@fujitsu.com
Mon Dec 26 03:07:17 CET 2022
HI Jan, Li
Sorry for the late reply, I came back after one week covid2019 sick,
Thanks for your review, merged!
Best Regards
Yang Xu
> 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