Virt: re-write and refactor of cpu_vendor() utility function
The current version of cpu_vendor() works by calling out an external 'grep'
process. This is rather unecessary. Also, having it in virt_utils make
more sense IMHO. Finally, renaming it to get_cpu_vendor() makes the API
more consistent with other functions such as get_vendor_from_pci_id().
Also attached is a unittest for virt_utils, that initially tests only
get_cpu_vendor() behaviour.
Changes from v1:
* Properly remove cpu_vendor() from virt_installer.py
* Fix typo in name of test_vendor_unknown() method
Signed-off-by: Cleber Rosa <crosa@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5467 592f7852-d20e-0410-864c-8624ca9c26a4