]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vmware: make version parsing more robust
authorJean-Baptiste Rouault <jean-baptiste.rouault@diateam.net>
Wed, 9 Apr 2014 09:59:53 +0000 (11:59 +0200)
committerJán Tomko <jtomko@redhat.com>
Wed, 11 Jun 2014 12:56:18 +0000 (14:56 +0200)
commit775bb9b15f0a60d265e442b45fa837c864cf2db6
treea410c9037d3601a2ccc2c32c3f86d5308387125a
parent3c43b6a7b2b05857bf74617b8227b22a41b51555
vmware: make version parsing more robust

Since commit d69415d4, vmware version is parsed from both stdout and
stderr. This patch makes version parsing work even if there is garbage
(libvirt debug messages for example) in the command output.

Add test data for this case.
src/vmware/vmware_conf.c
tests/vmwareverdata/workstation-7.0.0-with-garbage.txt [new file with mode: 0644]
tests/vmwarevertest.c