autotest.shared: create a new top level module and namespace

That is intended to be used as a portable (as in easy to sync)
collection of definitions that are needed by separate Autotest
components, such as the RPC server and client.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
client.shared.autotemp: Fix autotemp.tempdir.clean()

On NFS filesystems, when trying to remove the temporary
directory, we might end up with the same problem that
commit 5d1b5ba fixed (directory removal on NFS might
fail due to tmp files created by the NFS implementation).

So let's use utils.safe_rmdir once again to solve the
problem.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #771 from autotest/autotemp-fix

client.shared.autotemp: Fix autotemp.tempdir.clean()
client/harness_ABAT.py: put a nail in ABAT's coffin

Since it has been discontinued even on its original place
of inception.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
get_os_vendor(): warn about its deprecated status

Signed-off-by: Cleber Rosa <crosa@redhat.com>
client/shared/base_job.py: documentation style changes

Documentation only, deos not introduce any behaviour changes.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
client/shared/base_utils.py: port archive utilities from virt-test

These are needed by the installer base class.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
software manager: log additional info

including package type when logging installed packages

Signed-off-by: Cleber Rosa <crosa@redhat.com>
client/base_sysinfo: Also log the installed packaged before each test

This is needed to have a more precise view of what was installed during
the test.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
frontend/pkgdeps.py: add CentOS package deps

Which are the same as RHEL and Fedora.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
Merge pull request #776 from clebergnu/frontend_pkg_deps_centos

frontend/pkgdeps.py: add CentOS package deps
Merge pull request #772 from clebergnu/shared_frontend_rpc_v1

autotest.shared: create a new top level module and namespace
Add vg_create & vg_remove functions

Signed-off-by: Yanbing Du <ydu@redhat.com>
Merge pull request #770 from will-Do/vg-create

client/lv_utils.py: Add vg_create & vg_remove functions
Merge pull request #773 from clebergnu/fixes_and_cleanups_v1

Fixes and cleanups
utils.unittest_suite: Remove the firewalld add unittest from short set

This unittest requires python APIs not available in python
2.4, and would be better to be executed in a full run, rather
than a short run.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #778 from autotest/remove-fwall-unittest-default-set

utils.unittest_suite: Remove the firewalld add unittest from short set
autotest_firewalld_add_service_unittest: add proper wrapper to preserve sys.dont_write_bytecode value

To be more proper we should save and reset the value of
sys.dont_write_bytecode since it is a global system value.

We need to set dont_write_bytecode because if we don't when we
load a module from a file 'foo', python will write the bytecode to 'fooc',
or in this test case 'autotest-firewalld-add-servicec'

This function decorator is adapted from the original context manger from
http://stackoverflow.com/a/6811921
We have to use a function decorator since Python 2.4 doesn't have
context managers.

Eventually preserve_value should probably extracted and placed in
client/shared for use with importing and unittest 'control' files.

Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
autotest_firewalld_add_service_unittest: autopep8 formatting

Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
autotest-firewalld-add-service: make constant paths platform independent

Use os.path.join so the hard coded paths are platform independent.

Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>