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>
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>
file_module_loader: add module importer for regular files

This uses the `imp.load_module` function to load any filename as a python
module.  The filename does not have to end in *.py.  This use case is
slightly complicated since Python will write bytecode files by default.
For example, if we use imp.load_module to load a file named "foo",
Python will write the bytecode to "fooc".  This function works around
that by setting sys.dont_write_bytecode when loading the module.

This function is adapted from Stack Overflow answer by 'bignose'
http://stackoverflow.com/a/6811925.

The dont_write_bytecode setting is not supported on Python 2.4

The load_module_from_file function can be used to import 'control' files
for unit-testing purposes.

Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Revise netperf's avg_update

tpkt_per_exit 14=6/12,rpkt_per_irq 15=5/13 according
to following columns.

2               3       4               5       6
throughput  CPU     thr_per_CPU     rx_pkts tx_pkts
7       8       9       10      11      12      13
rx_byts tx_byts     re_pkts rx_intr tx_intr io_exit irq_inj
14             15
tpkt_per_exit rpkt_per_irq

Signed-off-by: wenli <wenli@redhat.com>
software_manager: spelling fix

found by PyCharm type checker

Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Merge pull request #784 from rbbratta/spelling

software_manager: spelling fix
Merge pull request #783 from WenliQuan/netperf

Revise netperf's avg_update
client.tests: Updating to the latest version of client tests

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