avocado.utils.params: Add code to access test params

Access test params through its internal dictionary, so
you can lookup

self.params.timeout

As well as

self.params['timeout']

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

Add a test that exercises the multiplex system, as well
as the system to access parameters passed to the test
(self.params).

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
avocado: Keep Pydev happy

Add some exceptions to the Eclipse Pydev linting system,
so those false negatives don't show.

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

Multiplextest
Add new test sleeptenmin

Sleep for 600 seconds, to see how avocado behaves under such
circumstances.

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

Add new test sleeptenmin
Add new test gendata

Generates json and png images, and saves them at the newly introduced
test own data dir.

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

This introduces a simple file-like attribute of every single test,
named, you guessed it right, `whiteboard`.

This can be written multiple times during the test run, or a single
time at the very end of the test, as the test writter wishes.

It will be automatically closed (and flushed) when the test ends.

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

Add a new test that exercises the test whiteboard.

When run multiplexed, it writes both simple text and binary random
data, in different sizes and number of writes.

Signed-off-by: Cleber Rosa <crosa@redhat.com>
Merge pull request #112 from clebergnu/test-gendata

Add new test gendata
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....
avocado.utils.crypto: Introduce create_x509_dir()