Skip to content

Commit 1a2bb70

Browse files
xuyang0410metan-ucw
authored andcommitted
tst_kvercmp: Add rhel7,8 support
Signed-off-by: Yang Xu <[email protected]> Reviewed-by: Cyril Hrubis <[email protected]>
1 parent f7bd83e commit 1a2bb70

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/tst_kvercmp.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,12 @@ const char *tst_kvcmp_distname(const char *kver)
146146
if (strstr(kver, ".el6"))
147147
return "RHEL6";
148148

149+
if (strstr(kver, ".el7"))
150+
return "RHEL7";
151+
152+
if (strstr(kver, ".el8"))
153+
return "RHEL8";
154+
149155
if (access(OSRELEASE_PATH, F_OK) != -1) {
150156
SAFE_FILE_LINES_SCANF(NULL, OSRELEASE_PATH, "ID=%s", distname);
151157

0 commit comments

Comments
 (0)