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:
parent
594c5e36a6
commit
b6924ef5e5
13
src/runtime/cmd/kata-runtime/kata-env_riscv64_test.go
Normal file
13
src/runtime/cmd/kata-runtime/kata-env_riscv64_test.go
Normal 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)
|
||||
}
|
Loading…
Reference in New Issue
Block a user