qemu: treat console kernel params within appendConsole

as it is tightly coupled with the appended console device
additionally have it tested

Signed-off-by: Snir Sheriber <ssheribe@redhat.com>
This commit is contained in:
Snir Sheriber
2022-05-10 19:36:25 +03:00
parent 51fa4ab671
commit 44814dce19
7 changed files with 19 additions and 16 deletions

View File

@@ -259,6 +259,8 @@ func TestQemuArchBaseAppendConsoles(t *testing.T) {
devices, err = qemuArchBase.appendConsole(context.Background(), devices, path)
assert.NoError(err)
assert.Equal(expectedOut, devices)
assert.Contains(qemuArchBase.kernelParams, Param{"console", "hvc0"})
assert.Contains(qemuArchBase.kernelParams, Param{"console", "hvc1"})
}
func TestQemuArchBaseAppendImage(t *testing.T) {