Skip to content

Commit

Permalink
lib/tests/lkvs.sh: die the job if splitlock is not supported
Browse files Browse the repository at this point in the history
split_lock_detect feature is available on some specific CPU families,
such as ICL and SPR. Die the job if it is running on other CPU that
doesn't support it.

Signed-off-by: Yujie Liu <[email protected]>
Signed-off-by: Philip Li <[email protected]>
  • Loading branch information
Yujie-Liu authored and rli9 committed May 22, 2024
1 parent effcc49 commit 5bc63dc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/tests/lkvs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ runtests()
log_cmd ./runtests -f pmu/tests
;;
splitlock)
cat /proc/cpuinfo | grep -q split_lock_detect || die "split_lock_detect not supported on current CPU"
log_cmd ./runtests -f splitlock/tests
;;
esac
Expand Down

0 comments on commit 5bc63dc

Please sign in to comment.