Message ID | 1671434187-2038-1-git-send-email-xuyang2018.jy@fujitsu.com |
---|---|
State | Accepted |
Headers | show |
Series | [1/2] tst_kvercmp: Add rhel9 support | expand |
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 > >
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 >
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 >> >
xuyang2018.jy@fujitsu.com <xuyang2018.jy@fujitsu.com> wrote: HI Jan, Li > > > Sorry for the late reply, I came back after one week covid2019 sick, > No worries, Xu. This round of the epidemic looks serious, almost everyone (including myself) around me gets infected COVID. Take care and have a good rest!!
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);
Signed-off-by: Yang Xu <xuyang2018.jy@fujitsu.com> --- lib/tst_kvercmp.c | 3 +++ 1 file changed, 3 insertions(+)