From 75336e5a35997dbcb2f61ca5b532f5ea938c9259 Mon Sep 17 00:00:00 2001 From: Michal Rostecki Date: Tue, 10 Jan 2023 11:50:36 +0800 Subject: [PATCH] integration-test: Fix the kernel version chceck for smoke test Before this chane, the check was always negative if the minor version was less then 9. So, for example, the smoke test was skipped for kernel 6.1: ``` skipping as 6.1 does not meet version requirement of 5.9 ``` Signed-off-by: Michal Rostecki --- test/integration-test/src/tests/smoke.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration-test/src/tests/smoke.rs b/test/integration-test/src/tests/smoke.rs index 67ee8f06..a7450064 100644 --- a/test/integration-test/src/tests/smoke.rs +++ b/test/integration-test/src/tests/smoke.rs @@ -19,7 +19,7 @@ fn xdp() { #[integration_test] fn extension() { let (major, minor, _) = kernel_version().unwrap(); - if major < 5 || minor < 9 { + if major < 5 || (minor == 5 && minor < 9) { info!( "skipping as {}.{} does not meet version requirement of 5.9", major, minor