mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-01-03 22:44:24 +01:00
qemu: allow to create a stopped guest
When Knobs.Stopped is set, the guest CPU will not be started at startup. Signed-off-by: Peng Tao <bergwolf@gmail.com>
This commit is contained in:
@@ -388,7 +388,7 @@ func TestAppendEmptyDevice(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestAppendKnobsAllTrue(t *testing.T) {
|
||||
var knobsString = "-no-user-config -nodefaults -nographic -daemonize -realtime mlock=on"
|
||||
var knobsString = "-no-user-config -nodefaults -nographic -daemonize -realtime mlock=on -S"
|
||||
knobs := Knobs{
|
||||
NoUserConfig: true,
|
||||
NoDefaults: true,
|
||||
@@ -399,6 +399,7 @@ func TestAppendKnobsAllTrue(t *testing.T) {
|
||||
FileBackedMemShared: true,
|
||||
Realtime: true,
|
||||
Mlock: true,
|
||||
Stopped: true,
|
||||
}
|
||||
|
||||
testAppend(knobs, knobsString, t)
|
||||
@@ -415,6 +416,7 @@ func TestAppendKnobsAllFalse(t *testing.T) {
|
||||
FileBackedMemShared: false,
|
||||
Realtime: false,
|
||||
Mlock: false,
|
||||
Stopped: false,
|
||||
}
|
||||
|
||||
testAppend(knobs, knobsString, t)
|
||||
|
||||
Reference in New Issue
Block a user