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

Yang Xu xuyang2018.jy@fujitsu.com
Mon Dec 19 08:16:26 CET 2022


Signed-off-by: Yang Xu <xuyang2018.jy@fujitsu.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