avocado.test: Default to get_logs_dir() as logs dir location

If we run avocado tests through nosetests, logs were
being generated in ~/avocado instead of ~/avocado/logs/run-[timestamp],
as normal tests executed by avocado do.

So, refactor the code that figures out the job directory
in job.Job() and move it to data_dir(). Make tests that
don't have a base_logdir set (such as instances executed
by nosetests) to use the same code, and we're all set.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
avocado.core.data_dir: Move avocado tmp location to /var/tmp

In newer systems, such as Fedora 19 onwards, the /tmp dir
is mounted on a tmpfs by default, and most users won't
ever disable this 'feature'. Some test suites were
not quite designed to run under tmpfs, hence they might
fail. Not to mention that sometimes the test suite might
be large, or generate large binary files so that tmpfs
won't be able to handle it.

So instead of storing test artifacts such as test suite
source code copies, and compiled test suites under /tmp,
let's use /var/tmp, that is not supposed to be wiped
through reboots, and usually is not mounted on tmpfs.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
avocado.job: Let's clean up test artifacts at the end of a test job

Introduce the --keep-tmp-files flag to the test runner,
that will keep them intact if for some reason we want to,
but by default clean test artifacts at the end of a test
job.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #46 from avocado-framework/fix-tmp-dir

Fix tmp dir
docs/source/conf.py: Make sphinx display __init__ method docstrings

We had to set the autoclass_content param in conf.py.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
avocado: Fix class docstrings

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
avocado.plugins.xunit: More docstrings

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
avocado: More docstring fixes

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #47 from avocado-framework/display-init-docs

Display init docs
Work in progress: Run tests on a libvirt domain.

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