Skip to content

Commit

Permalink
test: Skip lockstat prior to 5.10
Browse files Browse the repository at this point in the history
Turn off lockstat testing prior to 5.10 due to commit 197115e
"lockstat: refuse to provide probes on kernels < 5.10.0".

Signed-off-by: Eugene Loh <eugene.loh@oracle.com>
Reviewed-by: Kris Van Hees <kris.van.hees@oracle.com>
  • Loading branch information
euloh authored and kvanhees committed Jan 23, 2024
1 parent eff013b commit 69c8bd4
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/demo/lockstat/whatlock.x
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

read MAJOR MINOR <<< `uname -r | grep -Eo '^[0-9]+\.[0-9]+' | tr '.' ' '`
if [ $MAJOR -gt 5 ]; then
exit 0
fi
if [ $MAJOR -eq 5 -a $MINOR -ge 10 ]; then
exit 0
fi
echo "lockstat disabled prior to 5.10"
exit 1
13 changes: 13 additions & 0 deletions test/unittest/lockstat/test.x
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

read MAJOR MINOR <<< `uname -r | grep -Eo '^[0-9]+\.[0-9]+' | tr '.' ' '`
if [ $MAJOR -gt 5 ]; then
exit 0
fi
if [ $MAJOR -eq 5 -a $MINOR -ge 10 ]; then
exit 0
fi
echo "lockstat disabled prior to 5.10"
exit 1

0 comments on commit 69c8bd4

Please sign in to comment.