avocado: Make tests to refer their ids

Make avocado tests to refer to their test ids (paths),
relative to the directory you are in. For example,
running:

avocado run tests/sleeptest.py

will give you

DEBUG LOG: /home/lmr/avocado/logs/run-2014-07-31-12.54.01/debug.log
TOTAL TESTS: 1
(1/1) tests/synctest.py.1: PASS (1.93 s)

Test log and data directories were changed accordingly. Now,
if your test is synctest.py, your data dir will be called
synctest.py.data.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
avocado: Import full virttest library from virt-test

This way we'll be able to port and execute tests from
virt-test in avocado. The idea is to refactor and
simplify the current code progressively.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
avocado.job: Make changes to allow for new runner plugins

Make the run unhandled method public, also, create a
extra_params attribute that can be populated by plugins
with values of the command line options (we also trust
that plugin writers write proper extra param validation
code). The values of the extra options are passed directly
to every test.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
avocado.plugins: Add virt_runner

Add a test runner plugin that introduces the run-virt
command. This new command behaves similarly to the
run command, except that it allows params specific to
virt testing to be passed to the command line.

The first param passed here will be --qemu-bin, but
more will be introduced.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
avocado.virttest.data_dir: Hack to make data_dir work

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
avocado.plugins.virt_runner: Add the ability to run virt-tests

This initial implementation still leaves a lot to be desired,
but it lays down the path for a more stable virt test run
under avocado.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
virttest: Mass import fixes
avocado.virttest.standalone_test: Small fixes
avocado.core.output: Adjust root logger for autotest compatibility
avocado.plugins.virt_runner: Kill app on Ctrl + C
avocado.virttest.data_dir: Remove bogus print
avocado.virttest.env_process: Sometimes monitor is not present during guest reboot
.gitignore: Remove passfd module from list of changed files

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
avocado.virttest.video_maker: Use new object introspection (bogus fix, remove)

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
avocado.virttest: Add some default params
avocado.virttest.utils.net: Fix hiccup with parameters
avocado.utils.params: Get rid of attribute access hack

It was making the Params class to misbehave in critical ways.
Let's be sane and access params using .get() as always.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
avocado.virttest.defaults: Update default test params

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
avocado.virttest: Add test module

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
avocado.virttest.defaults: Add more test params

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