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>