virt: Only add machine type parameters when qemu supports this option

qemu-upstream has "-machine" option, "-M" is an alias.
qemu-kvm-rhel6 only has "-M" option.

So add "-M .." parameters when "-machine" or "-M" exists.

Signed-off-by: Amos Kong <akong@redhat.com>
virt: add "--machine ?" parameter in libvirt command line wrappers

--machine MACHINE :set the machine type to emulate.
add libvirt command line parameter "--machine ?" wrapper in
libvirt_vm.py.

Signed-off-by: Qing Lin <qinglbj@linux.vnet.ibm.com>
virt: trans_hugepage_swapping: Fix test to use current APIs

Test was using a reference to an old API that no longer
exists in virt_utils. Instead, let's use the current
methods to grab a VM class (methods of the env object).

Also, use up to date methods to get an ssh session to the vm.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
API: client: Drop bin directory

This patch introduces API changes for test writers

Drop the client/bin directory to make autotest
more palatable for distro packagers, also making
the API more flat. Now all uses of

autotest_lib.client.bin.[library]

become

autotest_lib.client.[library]

The conversion was mostly automated, plus some
tweaks to make autotest-local work, and moving
profilers.py code to the __init__.py of the profilers
directory.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
API: Moving autotest_lib to autotest

This patch brings API changes to test writers.

Move autotest_api to a shorter and cleaner
autotest. So all references to

autotest_lib.[lib]

Become

autotest.[lib]

The conversion was made mostly automated by
script.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
API: Move common_lib to shared

This patch brings API changes to test writers.

Move common_lib to the cleaner and shorter shared,
since that is a shared library space among all
autotest modules. So all references to

autotest.client.common_lib.[lib]

become

autotest.client.shared.[lib]

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
unittest_suite: Add another file to blacklist

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
utils.run_pylint: Remove the need for custom import filters

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
client.setup_modules: Handle client stand alone execution

The setup_modules handling for stand alone client wasn't
being considered in the previous patches, it was broken.
With this patches, executing the client stand alone should
work again.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
server: Fix autotest install

As we had to move client/bin/profilers.py ->
client/profilers/__init__.py, our packaging install code
for autotest was breaking client execution, since profilers
is not really copied to the client. Fix this by copying
only the __init__.py to the appropriate location.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virt: Fix autotest execution in guests

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
client.setup.py: Remove inexistent bin pkg

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virt: Move file_transfer to virt_test_utils

Since 4 different tests were using it, it seemed an
obvious place to move it to. Besides, the new import
dynamics was causing problems to execute it from
inside its source file.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
server: Fix get_install_dir

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
client: Prunning unused imports

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
server: Prunning unused imports

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
scheduler: Prunning unused imports

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
client.base_utils: Silence file_contains_pattern

So we get a little less debug output that is not really
necessary.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
utils.get_os_vendor: Update Fedora detection

Update ID string from 'Fedora Core' to just 'Fedora',
as the former definition is, um, kinda old.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
client.base_utils.get_os_vendor: Debug print OS vendor

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>