autotest / tp-libvirt

Test Provider for Libvirt and related virtualization backends
Other
33 stars 169 forks source link

v2v: fix failed case on checking v2v version for rhel10 #5855

Closed vwu-vera closed 2 months ago

vwu-vera commented 2 months ago

The check-version function failed on rhel10 cause the way to check versions is on the digital. Fix the function and it can work both on rhel10 and rhel9.

vwu-vera commented 2 months ago

(1/1) type_specific.io-github-autotest-libvirt.v2v_options.positive_test.option_version.input_mode.none.output_mode.none: PASS (3.98 s)

[stdlog] 2024-08-26 10:28:56,910 root v2v_options L0592 INFO |rpm-version: 2.5.6-1.el10 [stdlog] 2024-08-26 10:28:56,910 root v2v_options L0593 INFO |v2v-version: virt-v2v 2.5.6rhel=10,release=1.el10 [stdlog] 2024-08-26 10:28:56,910 root v2v_options L0596 INFO |virt-v2v-version: 2.5.6-1.el10

vwu-vera commented 2 months ago

@xiaodwan @mxie91 please help to review and merge. Thanks.:)