functools_24.py: do not rely on internal python module implementation details

Or at least check if the needed attributes exists before tryting to get them.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
version: If not possible to figure version, fall back to "unreleased"

The term is correct, as autotest was not released yet, but
more importantly, will allow people to run the version code
even in out of git tree tarballs.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
client.shared.version: Use iso tag instead of 'unreleased'

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
autotest-local: Specify test directory as a command line option

This patch allows to specify the location of the test
directory via an extra command line option, -d.

Usage:./autotest -d /path/to/dir path/to/control

Signed-off-by: Rajeev S <rajeevs1992@gmail.com>
virt: Add utils.safe_rmdir() function to make sure a directory can be removed

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>
autotest_remote: Fix BUG when control files require PEP 0263 source encoding

Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
client.profilers.systemtap: Do not fail jobs when stap check command fail.

Now when stap check command fail, job will stopped.

Signed-off-by: Feng Yang <fyang@redhat.com>
install-autotest-server.sh: relocate apache-web.conf to new $ATHOME

We need to update the DocumentRoot in apache-web-conf to point to the
new $ATHOME.

Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Revert "autotest_remote: Fix BUG when control files require PEP 0263 source encoding"

This reverts commit 24df2a77c97d2356840d49c11b2a05f375b51cbd.

This caused a regression on the daily regression run:

  Traceback (most recent call last):
    File "/usr/local/autotest/job.py", line 1115, in step_engine
      execfile(self.control, global_control_vars, global_control_vars)
    File "/usr/local/autotest/control.autoserv", line 1
  SyntaxError: encoding problem: with BOM (control.autoserv, line 1)

So I am reverting it

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
client.job_unittest: Fix unittest broken with 3263bc8

The new utility function to safely remove directories
also has to be stubbed.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
client.setup_job_unittest: Fix unittest broken with 3263bc8

The new utility function to safely remove directories
also has to be stubbed.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
client.shared.iso9660: Update API documentation.

Signed-off-by: Ruda Moura <rmoura@redhat.com>
client.shared.ssh_key: Update API documentation.

Signed-off-by: Ruda Moura <rmoura@redhat.com>
client.shared: Convert API documentation markup to the Sphinx format.

Translate API documentation markup, included in docstrings, to the
format that Sphinx documentation engine accepts.

The changes are very simple but massive, the following markups
were translated:

* @param to :param
* @type to :type
* @attr to :attr

Signed-off-by: Ruda Moura <rmoura@redhat.com>
documentation: Include API documentation.

Include API documentation for the client part of autotest,
created by running sphinx-apidoc and collecting the doc strings
from the source code.

Signed-off-by: Ruda Moura <rmoura@redhat.com>
documentation: Add docutils dependency

Include docutils to the list of build dependencies.

Signed-off-by: Ruda Moura <rmoura@redhat.com>
documentation: Remove references for *_unittest in documentation.

Remove references for *_unittest from the API source documentation (*.rst).

Signed-off-by: Ruda Moura <rmoura@redhat.com>
client.utils: Include the content of base_utils inside utils.

In order to make the API documentation simpler to understand,
move base_utils functions to utils and make the necessary arrangements.

Signed-off-by: Ruda Moura <rmoura@redhat.com>
software_manager: add support for single package upgrade

Add optional package name arg so we can upgrade individual
packages. This was made in all known backends so to maintain
a uniform interface.

Signed-off-by: Ross Brattain <ross.b.brattain@intel.com>
Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
software_manager: Search dict with lowercase distro name, add logging

The generic distribution package list is stored by with a lowercase
distro name key, using the detected_distro.name value unmodified on
Ubununtu results in failure as Ubuntu != ubuntu. Add some basic
logging to make this sort of failure much easier to identify in the
future.

Signed-off-by: Darren Hart <dvhart@linux.intel.com>