mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-30 16:35:24 +00:00
test: snapshot revert: properly emulate starting CPUs
When active snapshot is reverted we stop CPUs in order to load the snapshot but we never start the CPUs again. Signed-off-by: Pavel Hrdina <phrdina@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
ca04290be3
commit
2ef6b1cecf
@ -9144,6 +9144,9 @@ testDomainRevertToSnapshot(virDomainSnapshotPtr snapshot,
|
||||
virObjectUnref(event);
|
||||
event = NULL;
|
||||
|
||||
virDomainObjSetState(vm, VIR_DOMAIN_RUNNING,
|
||||
VIR_DOMAIN_PAUSED_FROM_SNAPSHOT);
|
||||
|
||||
if (was_stopped) {
|
||||
/* Transition 2 */
|
||||
event = virDomainEventLifecycleNewFromObj(vm,
|
||||
|
@ -137,25 +137,25 @@ Domain snapshot s1 deleted
|
||||
Name Creation Time State
|
||||
---------------------------------------------
|
||||
s3 TIMESTAMP running
|
||||
s7 TIMESTAMP paused
|
||||
s7 TIMESTAMP running
|
||||
|
||||
Name Creation Time State
|
||||
---------------------------------------------
|
||||
s2 TIMESTAMP running
|
||||
s4 TIMESTAMP paused
|
||||
s5 TIMESTAMP paused
|
||||
s8 TIMESTAMP paused
|
||||
s4 TIMESTAMP running
|
||||
s5 TIMESTAMP running
|
||||
s8 TIMESTAMP running
|
||||
|
||||
Name Creation Time State Parent
|
||||
------------------------------------------------------
|
||||
s3 TIMESTAMP running
|
||||
s6 TIMESTAMP paused s3
|
||||
s7 TIMESTAMP paused
|
||||
s6 TIMESTAMP running s3
|
||||
s7 TIMESTAMP running
|
||||
|
||||
Name Creation Time State
|
||||
---------------------------------------------
|
||||
s2 TIMESTAMP running
|
||||
s6 TIMESTAMP paused
|
||||
s6 TIMESTAMP running
|
||||
|
||||
s2
|
||||
s4
|
||||
|
Loading…
x
Reference in New Issue
Block a user