mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-30 17:22:33 +00:00
s390x: fix golangci-lint
Fix lint complains in the s390x files Fixes: #1453 Signed-off-by: Alice Frosi <afrosi@de.ibm.com>
This commit is contained in:
parent
432eda0f83
commit
19458ec473
@ -123,50 +123,50 @@ func TestArchKernelParamHandler(t *testing.T) {
|
|||||||
|
|
||||||
type testData struct {
|
type testData struct {
|
||||||
onVMM bool
|
onVMM bool
|
||||||
|
expectIgnore bool
|
||||||
fields logrus.Fields
|
fields logrus.Fields
|
||||||
msg string
|
msg string
|
||||||
expectIgnore bool
|
|
||||||
}
|
}
|
||||||
|
|
||||||
data := []testData{
|
data := []testData{
|
||||||
{true, logrus.Fields{}, "", false},
|
{true, false, logrus.Fields{}, ""},
|
||||||
{false, logrus.Fields{}, "", false},
|
{false, false, logrus.Fields{}, ""},
|
||||||
|
|
||||||
{
|
{
|
||||||
|
false,
|
||||||
false,
|
false,
|
||||||
logrus.Fields{
|
logrus.Fields{
|
||||||
// wrong type
|
// wrong type
|
||||||
"parameter": 123,
|
"parameter": 123,
|
||||||
},
|
},
|
||||||
"foo",
|
"foo",
|
||||||
false,
|
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
|
false,
|
||||||
false,
|
false,
|
||||||
logrus.Fields{
|
logrus.Fields{
|
||||||
"parameter": "unrestricted_guest",
|
"parameter": "unrestricted_guest",
|
||||||
},
|
},
|
||||||
"",
|
"",
|
||||||
false,
|
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
|
true,
|
||||||
true,
|
true,
|
||||||
logrus.Fields{
|
logrus.Fields{
|
||||||
"parameter": "unrestricted_guest",
|
"parameter": "unrestricted_guest",
|
||||||
},
|
},
|
||||||
"",
|
"",
|
||||||
true,
|
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
{
|
||||||
false,
|
false,
|
||||||
|
true,
|
||||||
logrus.Fields{
|
logrus.Fields{
|
||||||
"parameter": "nested",
|
"parameter": "nested",
|
||||||
},
|
},
|
||||||
"",
|
"",
|
||||||
true,
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -100,9 +100,7 @@ func (q *qemuS390x) appendConsole(devices []govmmQemu.Device, path string) []gov
|
|||||||
|
|
||||||
devices = append(devices, serial)
|
devices = append(devices, serial)
|
||||||
|
|
||||||
var console govmmQemu.CharDevice
|
console := govmmQemu.CharDevice{
|
||||||
|
|
||||||
console = govmmQemu.CharDevice{
|
|
||||||
Driver: govmmQemu.Console,
|
Driver: govmmQemu.Console,
|
||||||
Backend: govmmQemu.Socket,
|
Backend: govmmQemu.Socket,
|
||||||
DeviceID: "console0",
|
DeviceID: "console0",
|
||||||
|
Loading…
Reference in New Issue
Block a user