Run avocado when called by 'python -m avocado'

Add a main entry point when avocado is called
by the command line option 'python -m avocado'.

Signed-off-by: Rudá Moura <rmoura@redhat.com>
selftests..multiplex_tests: Check that vars changes

Replace test_run_mplex_timeout with test_run_mplex_params test which
executes 'env_variables.sh' and checks that output contain correct
output. This test checks the multiplexer capability to change variable
value.

Signed-off-by: Lukáš Doktor <ldoktor@redhat.com>
Merge pull request #293 from ldoktor/selftest-mux

selftests..multiplex_tests: Check that vars changes
Merge pull request #292 from ruda/main_entry_point

 Run avocado when called by 'python -m avocado'
avocado.runner: New module with TestRunner class inside.

Creates the module `avocado.runner` where the `TestRunner` class lives.

Signed-off-by: Rudá Moura <rmoura@redhat.com>
avocado.job: Remove TestRunner class.

Remove TestRunner class from this module, it's now defined inside new
module `avocado.runner`.

Signed-off-by: Rudá Moura <rmoura@redhat.com>
avocado.plugins: Plugins vm and remote uses avocado.runner module.

Change plugins vm and remote to use new module `avocado.runner`
that contains the TestRunner class.

Signed-off-by: Rudá Moura <rmoura@redhat.com>
Merge pull request #294 from ruda/refactory_job_and_runner_modules

Move class TestRunner inside avocado.job into a proper new module avocado.runner
avocado.plugins: Fix garbage output on remote and vm plugins.

When using the remote or vm plugins, the JSON (or XML) result from
the remote server is coming with garbage at the end.
This commit fix this by filtering the result.

Signed-off-by: Rudá Moura <rmoura@redhat.com>
Merge pull request #299 from ruda/fix_bad_input_for_remote_vm

Fix garbage output on remote and vm plugins.