Skip to content

Commit

Permalink
Merge pull request autotest#5240 from mxie91/add-v2v-cases-about-gues…
Browse files Browse the repository at this point in the history
…t-with-large-disk

Convert guest with large disk to check performance
  • Loading branch information
xiaodwan committed Oct 31, 2023
2 parents d32503b + 40536c7 commit e6f1a0b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions v2v/tests/cfg/function_test_esx.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -870,6 +870,12 @@
cmd_has_ip = 'no'
msg_content = '[email protected]'
expect_msg = yes
- with_large_disk:
only esx_70
only it_vddk
main_vm = VM_NAME_LARGE_DISK_V2V_EXAMPLE
checkpoint = 'large_disk'
v2v_debug = false
variants:
- positive_test:
status_error = 'no'
Expand Down
6 changes: 6 additions & 0 deletions v2v/tests/src/function_test_esx.py
Original file line number Diff line number Diff line change
Expand Up @@ -620,6 +620,12 @@ def vm_check(status_error):
V2V_FSTRIM_SUCESS_VER = "[virt-v2v-1.45.1-1.el9,)"
if utils_v2v.multiple_versions_compare(V2V_FSTRIM_SUCESS_VER):
params.update({'expect_msg': None})
if 'large_disk' in checkpoint:
time_info = re.search(r'.*\d.*Finishing.*off', output).group(0)
usetime = re.search(r'\d+\.\d+', str(time_info)).group(0).split('.')[0]
LOG.info('use time is %s' % usetime)
if int(usetime) > 300:
test.fail("conversion time is too long, please check v2v performance")
# Log checking
log_check = utils_v2v.check_log(params, output)
if log_check:
Expand Down

0 comments on commit e6f1a0b

Please sign in to comment.