avocado.job: Fix docstring

We don't enforce 80 columns, but in this case there was
no reason why we couldn't keep the docstring under said
restriction.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
avocado: Make Job and Test debug log and debug dir attributes symmetrical

I realize it was a bad naming choice I made while writing
the Job class the use of 'debugdir' and 'debuglog'. It should
have been 'logdir' and 'logfile', just as they are used in
the Test class. This patch fixes it.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
avocado.plugins.jsonresult: Fix bug that closed file logging before due time

The JSON output plugin was stopping file output before
due time, therefore only the first instance of the test
was being logged. Let's fix that.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
selftests/functional: Add sanity check in job output lines

Make a reasonable effort in checking the amount of lines
avocado outputs to the job log. If it is less than a certain
amount, we might be having output problems.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #113 from lmr/joblog-bugfix

Joblog bugfix
avocado: Rename test.datadir to test.outputdir and test.depsdir to test.datadir

In fact those names are more clear as to the purpose
of each directory.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
avocado.test: Rename Test.get_deps_path() to Test.get_data_path()

Make the names used consistent between attributes and
methods inside the Test class.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
docs: Update references to Test.get_deps_path to Test.get_data_path

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
Merge pull request #114 from lmr/datadir-outputdir

avocado: Rename test.datadir to test.outputdir and test.depsdir to test....
test whiteboard: convert it to a test instance first class attribute

Based on some discussions, we decided to make the whiteboard a test
instance attribute (string) that is automatically exposed to test
results.

For the use case of persisting multiple files with the test result,
the test data dir can still be used (refer to the `gendata` test).

Signed-off-by: Cleber Rosa <crosa@redhat.com>
whiteboard test: adapt test to new whiteboard implementation

Signed-off-by: Cleber Rosa <crosa@redhat.com>
plugins/jsonresult.py: include test whiteboard

Signed-off-by: Cleber Rosa <crosa@redhat.com>