Skip to content

Commit

Permalink
Merge pull request #1286 from jlebon/pr/gemini-testing
Browse files Browse the repository at this point in the history
tests/trust-cpu: support v6.x kernels
  • Loading branch information
openshift-merge-robot committed May 18, 2023
2 parents bf48a95 + a2ae793 commit 2fe5aff
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions tests/kola/files/trust-cpu
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
## kola:
## exclusive: false
## description: Verify CONFIG_RANDOM_TRUST_CPU is enabled by default.
## This is RHCOS only.
## This test will start failing and can be removed when RHCOS
## gets to kernel version 6.2+
## architectures: x86_64
## This test can be removed when RHCOS gets to kernel version 6.2+
## https://github.com/coreos/fedora-coreos-tracker/issues/1369
## https://github.com/coreos/fedora-coreos-config/pull/2155
## https://bugzilla.redhat.com/show_bug.cgi?id=1830280
Expand All @@ -13,12 +12,12 @@ set -xeuo pipefail

. $KOLA_EXT_DATA/commonlib.sh

case "$(arch)" in
x86_64)
case "$(uname -r)" in
5.*|6.0.*|6.1.*)
config=$(grep ^CONFIG_RANDOM_TRUST_CPU /lib/modules/$(uname -r)/config)
if [ "$config" != "CONFIG_RANDOM_TRUST_CPU=y" ]; then
fatal "Error: Failed to find crng trusting CPU"
fatal "config missing CONFIG_RANDOM_TRUST_CPU"
fi
ok "random trust cpu" ;;
*) echo "Don't know how to test hardware RNG state on arch=$(arch)" ;;
*) echo "CPU trusting is always enabled" ;;
esac

0 comments on commit 2fe5aff

Please sign in to comment.