avocado.plugins.manager: Fix wrong variable to log.

Fix the variable to display in log when an external plugin fails
to load.

Signed-off-by: Ruda Moura <rmoura@redhat.com>
selftests: Add  functional tests regarding external plugins.

Add functional tests to explore external plugins in two
bad scenarios: 1) plugin without configure() method implemented,
2) plugin with syntax error.

Signed-off-by: Ruda Moura <rmoura@redhat.com>
avocado/core/output.py: introduce partial progress/success messages

Signed-off-by: Cleber Rosa <crosa@redhat.com>
test result output: allow for test specific progress indication

The throbber that gives visual indication of progress can now show if the progress
includes test specific progress (GREEN) or if the test process is running (YELLOW)
but actual progress is unknown.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
avocado test state: include the extra information regarding test time

And running state. Every time the state is produced and put in the queue,
the elapsed time is updated. Also, a new flag, "running", shows if the
framework has entered or exited the test entry point.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
job main loop: use the test 'running' attribute

So that multiple test states can be received by the main loop, but
only if the test is finished we break out from the loop.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
sleeptenmin test: add new test scenarios

Including number of sleep cycles, sleep cycle length and finally
the sleep method, either using the python time.sleep() or running
the shell "sleep" command.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
job and test communication: let the test have hold of the runner queue

So that it can report back its state whenever it feels like it.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
test progress: allow test to communicate its real progress back to the test runner

A test writer can write its own check that will be called by default, or just decide
on each call to communicate_progress() if there has been any (progress).

Also, the job main loop now shows a green throbber when there has been real test
progress.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
tests/sleeptenmin.py: implement a test specific progress check

Which doesn't hold any logic, but serves as an example.

To watch the intended behavior in action, I recommend running the
"one_hundred_cycles" variant of this tests.

The test runner will show that the test is running (yellow throbber
spinning), and once each six seconds (+1% into the test run) a green
throbber will be shown.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
avocado.core: Introduce tree library

Introduce a new data structure that will be the base of
our new multiplexing mechanism.

Signed-off-by: Ruda Moura <rmoura@redhat.com>
avocado: Introduce the new multiplexer library

Based on the new treenode data structure, we
built a new multiplexing algorithm. It has some
different properties and uses a more standard
YAML file format for the configuration files.

This commit is the new base library.

Signed-off-by: Ruda Moura <rmoura@redhat.com>
avocado: Change framework to use the new multiplexer

That change has to be made all at once for the sake of
bisectability. Update avocado.job and the multiplexer
plugin with the new multiplexing library code.

Also, update functional tests, the avocado sample tests
with the new YAML based config files, and the requirements.txt
file with the new prominent dependency of avocado, PyYAML.

Signed-off-by: Ruda Moura <rmoura@redhat.com>
avocado: Remove the old multiplexer

Signed-off-by: Ruda Moura <rmoura@redhat.com>
docs: Update documentation with new multiplexer sections

Also, remove the references to the old system.

Signed-off-by: Ruda Moura <rmoura@redhat.com>
Merge pull request #159 from lmr/new-multiplexer-rmoura

New multiplexer
Merge pull request #151 from clebergnu/live_test_state

Live test state
Merge pull request #157 from ruda/fix_small_bug_external_plugins

Fix small bug in external plugins