Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kola/tests/misc/verity: check arm64 board on all platforms #218

Merged
merged 1 commit into from
Aug 26, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions kola/tests/misc/verity.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import (
"github.com/coreos/mantle/kola/register"
"github.com/coreos/mantle/kola/tests/util"
"github.com/coreos/mantle/platform"
"github.com/coreos/mantle/platform/machine/qemu"
)

func init() {
Expand Down Expand Up @@ -111,8 +110,8 @@ func VerityCorruption(c cluster.TestCluster) {

// get offset of verity hash within kernel
func getKernelVerityHashOffset(c cluster.TestCluster) int {
// assume ARM64 is only on QEMU for now
if _, ok := c.Cluster.(*qemu.Cluster); ok && kola.QEMUOptions.Board == "arm64-usr" {
// the QEMUOptions.Board is also used by other platforms
if kola.QEMUOptions.Board == "arm64-usr" {
return 512
}
return 64
Expand Down