avocado.job: Fix return code of stand alone tests

When running stand alone tests, ie, tests without
the avocado runner, I surely do expect they return
exit codes according to wether it passed or failed.

This patch fixed that by making the TestModuleRunner
class to return appropriate return codes from the
Job.run() function.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
.travis.yml: Run stand alone tests

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #57 from avocado-framework/fix-stand-alone-tests-rc

Fix stand alone tests rc
avocado.core.exceptions: Make TestSetupFail an ERROR

It is easier to show when a test actually failed, or
we were not able to successfully set the test up.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
avocado.test: Raise TestSetupFail on both setup and cleanup

Since both can possibly fail and mask the actual test
results.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
avocado.core.exceptions: Avoid avocado crashing on unknown error status

Since someone might want to be funny and raise those
exceptions, it is safer to make them to return "FAIL"
instead of "NEVER_RAISE_THIS", so avocado does not
crash.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
avocado tests: Add 3 functional avocado tests

They raise the following exceptions:

1) TestError (failure)
2) TestNAError (skip)
3) TestWarn (failure)

The corresponding functional tests for them go
in the Travis CI file.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #58 from avocado-framework/new-tests

Add new avocado Functional Tests
avocado.core.data_dir: Contemplate read only dirs

The avocado tests location can actually be a read
only location, so take that into account when looking
for test dirs.

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

avocado.core.data_dir: Contemplate read only dirs
avocado.spec: Update version and description.

Remove avocadoversion macro.

Signed-off-by: Ruda Moura <rmoura@redhat.com>
avocado.job: Create entry point for  plugable test runners.

Add a new entry point to attach plugins when running tests with
test results.

Signed-off-by: Ruda Moura <rmoura@redhat.com>
Work in progress: Run tests on a libvirt domain.

Signed-off-by: Ruda Moura <rmoura@redhat.com>
Add methods to send and receive files from VM.

Signed-off-by: Ruda Moura <rmoura@redhat.com>
Pass the urls of the tests.

Signed-off-by: Ruda Moura <rmoura@redhat.com>
avocado.plugins.vm: Add vm_test_runner.

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