Skip to content

Commit

Permalink
Merge pull request autotest#4965 from hs0210/backingchain_allocation
Browse files Browse the repository at this point in the history
backingchain: slow down the process of blockcommit to check for allocation changes
  • Loading branch information
Yingshun committed Jul 20, 2023
2 parents ca71699 + b36ed5a commit f384687
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
virsh_opt = " -k0"
variants case:
- inactive_layer:
commit_option = "--top ${target_disk}[3] --base ${target_disk}[1] --wait --verbose"
commit_option = "--top ${target_disk}[3] --base ${target_disk}[1] --wait --verbose --bandwidth 10"
commit_success_msg = "Commit complete"
- active_layer:
commit_option = " --wait --verbose --pivot "
commit_option = " --wait --verbose --pivot --bandwidth 10"
commit_success_msg = "Successfully pivoted"
variants:
- file_disk:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ def run_test():
test.fail("%s should keep changing during blockcommit %s." % (
disappear_alloc, virsh_session.get_stripped_output()))
alloc_dict = alloc_new_dict
time.sleep(1)

test.log.info("TEST_STEP3: Check %s should disappear" % disappear_alloc)
if utils_misc.wait_for(lambda: commit_success_msg in
Expand Down

0 comments on commit f384687

Please sign in to comment.