forked from autotest/tp-libvirt
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix snapshot case to use appropirate get snap state function
no need to use the new created function: virsh.snapshot_status Signed-off-by: nanli <[email protected]>
- Loading branch information
Showing
2 changed files
with
45 additions
and
28 deletions.
There are no files selected for viewing
18 changes: 9 additions & 9 deletions
18
.../snapshot/revert_snap_based_on_status.cfg → ...g/snapshot/revert_snap_based_on_state.cfg
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,19 @@ | ||
- snapshot_revert.snap_and_domain_status: | ||
type = revert_snap_based_on_status | ||
- snapshot_revert.snap_and_domain_state: | ||
type = revert_snap_based_on_state | ||
start_vm = no | ||
snap_name = 's1' | ||
func_supported_since_libvirt_ver = (9, 10, 0) | ||
variants : | ||
variants: | ||
- snap_running: | ||
snap_status = "running" | ||
expected_status = "${snap_status}" | ||
snap_state = "running" | ||
expected_state = "${snap_state}" | ||
snap_options = " %s --memspec snapshot=external,file=/tmp/mem.s1 --diskspec vda,snapshot=external,file=/tmp/vda.s1" | ||
- snap_shutoff: | ||
snap_status = "shutoff" | ||
expected_status = "shut off" | ||
snap_state = "shutoff" | ||
expected_state = "shut off" | ||
snap_options = " %s --diskspec vda,snapshot=external,file=/tmp/vda.s1" | ||
variants: | ||
- vm_running: | ||
vm_status = "running" | ||
vm_state = "running" | ||
- vm_shutoff: | ||
vm_status = "shut off" | ||
vm_state = "shut off" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters