1
0
mirror of https://github.com/kata-containers/kata-containers.git synced 2025-05-05 23:17:34 +00:00

runtime: Add getExpectedHostDetails for riscv64

Add `getExpectedHostDetails` with expected value according to template
defined in `kata-check_data_riscv64_test.go`. This provides necessary
`HostInfo` for tests to cover `kata-check_riscv64.go`.

Signed-off-by: Yuting Nie <nieyuting@iscas.ac.cn>
This commit is contained in:
Yuting Nie 2025-03-27 10:34:34 +08:00 committed by Ruoqing He
parent 594c5e36a6
commit b6924ef5e5

View File

@ -0,0 +1,13 @@
// Copyright (c) 2025 Institute of Software, CAS.
//
// SPDX-License-Identifier: Apache-2.0
//
package main
func getExpectedHostDetails(tmpdir string) (HostInfo, error) {
expectedVendor := "0x0"
expectedModel := "0x0"
expectedVMContainerCapable := true
return genericGetExpectedHostDetails(tmpdir, expectedVendor, expectedModel, expectedVMContainerCapable)
}