mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-08 00:44:25 +01:00
To prepare for merging into kata-containers repository. Signed-off-by: Peng Tao <bergwolf@hyper.sh>
25 lines
425 B
Go
25 lines
425 B
Go
// Copyright (c) 2018 IBM
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
|
|
package main
|
|
|
|
import (
|
|
"github.com/sirupsen/logrus"
|
|
"io/ioutil"
|
|
)
|
|
|
|
var testCPUInfoTemplate = setTestCPUInfoTemplate()
|
|
|
|
func setTestCPUInfoTemplate() string {
|
|
|
|
var kataLog *logrus.Entry
|
|
content, err := ioutil.ReadFile("/proc/cpuinfo")
|
|
|
|
if err != nil {
|
|
kataLog.WithError(err).Error("failed to read file /proc/cpuinfo")
|
|
}
|
|
return string(content)
|
|
}
|