[LTP] [PATCH v2 3/6] doc/shell-test-api.txt
Yang Xu
xuyang2018.jy@fujitsu.com
Wed Dec 14 12:45:00 CET 2022
Update tst_kvcmp usage.
Signed-off-by: Yang Xu <xuyang2018.jy@fujitsu.com>
---
doc/shell-test-api.txt | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/doc/shell-test-api.txt b/doc/shell-test-api.txt
index 73c9eff91..f35561e54 100644
--- a/doc/shell-test-api.txt
+++ b/doc/shell-test-api.txt
@@ -652,13 +652,15 @@ tst_kvcmp
+++++++++
This command compares the currently running kernel version given conditions
-with syntax similar to the shell test command.
+with syntax similar to the shell test command. Now, the oldest supported kernel
+version for ltp is 3.0, so we don't need this if comparing with very old version
+ie 2.6.8 .
[source,sh]
-------------------------------------------------------------------------------
-# Exit the test if kernel version is older or equal to 2.6.8
-if tst_kvcmp -le 2.6.8; then
- tst_brk TCONF "Kernel newer than 2.6.8 is needed"
+# Exit the test if kernel version is older or equal to 4.0.0
+if tst_kvcmp -le 4.0.0; then
+ tst_brk TCONF "Kernel newer than 4.0.0 is needed"
fi
# Exit the test if kernel is newer than 3.8 and older than 4.0.1
--
2.27.0
More information about the ltp
mailing list