Skip to content

Commit

Permalink
Merge pull request #5174 from smitterl/improve_blockcommit
Browse files Browse the repository at this point in the history
virsh_blockcommit: create file with random contents for error test
  • Loading branch information
chunfuwen authored Sep 25, 2023
2 parents 83e4c97 + 60053e0 commit 7e0701e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libvirt/tests/src/virsh_cmd/domain/virsh_blockcommit.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,8 @@ def do_blockcommit_pivot_repeatedly():
make_relative_path_backing_files(pre_set_root_dir)
blk_source_folder = create_reuse_external_snapshots(pre_set_root_dir)
else:
make_disk_snapshot(postfix_n, snapshot_take, check_snapshot_tree, check_image_file_in_vm)
is_create_image_file_in_vm = True if status_error else check_image_file_in_vm
make_disk_snapshot(postfix_n, snapshot_take, check_snapshot_tree, is_create_image_file_in_vm)

basename = os.path.basename(blk_source)
diskname = basename.split(".")[0]
Expand Down

0 comments on commit 7e0701e

Please sign in to comment.