Skip to content

Commit

Permalink
kola/tests/misc/verity: check arm64 board on all platforms
Browse files Browse the repository at this point in the history
The QEMUOptions.Board value is used for all platform tests and the
preceding check for the QEMU platform made it use the wrong kernel
offset on other platforms.
  • Loading branch information
pothos committed Aug 26, 2021
1 parent 12b5a96 commit e3f9a32
Showing 1 changed file with 2 additions and 3 deletions.
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

0 comments on commit e3f9a32

Please sign in to comment.