avocado.plugins: PEP8 Fixes

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
avocado.test: Move runner plugin functionality to test module

So that we can make avocado test modules self runnable.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
avocado.job: Implement Job and TestModuleRunner classes

A Job is a sequence of operations executed on a
machine. This patch implements the class, which
is a refactor of the test run function, and a
class that implements a convenience found in
python unittests: the main() method. This allows
test modules to be executable in stand alone
mode, without the need of the avocado test runner.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
avocado.plugins.runner: Make the test runner to use the new Job class

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
avocado.test: Remove the run_test() function

As it is not necessary in avocado anymore.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
tests: Make all test modules self executable

Introduce the job.main() entry point in all avocado
test modules. This way all of them can be
executed. The functionality depends on
having avocado installed system wide, though.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #5 from lmr/self-runnable-tests

Self runnable tests
avocado.cli.app: Change an unused variable name

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Add option -v | --version to the application.

Actually pass parameter for version when calling ArgumentParser,
so we're leaving -V for --verbose.

Plus: simplify code for utils.unique().

Signed-off-by: Ruda Moura <rmoura@redhat.com>
Add support for Test Results.

Signed-off-by: Ruda Moura <rmoura@redhat.com>
Merge pull request #6 from ruda/version_option

Add option -v | --version to the application.
Merge pull request #7 from ruda/test_result

Add support for Test Results report.
sysinfo: Include /var/log/system.log (Mac compatibility)

Signed-off-by: Rudá Moura <ruda.moura@gmail.com>