Merge pull request #30 from ruda/test_result_junit

avocado.plugins.xunit: Cosmetic fixes in documentation.
avocado.test: Save test traceback in Test.traceback

If a traceback was generated while executing an
avocado test, save the text contents to the
traceback attribute. It can then be used by code
such as the xunit plugin, to store that info.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
avocado.test: Save exception name in Test.fail_class

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>
avocado.test: Save log contents in Test.text_output

At the end of a test, in order to make xunit information
richer, we can simply save the log contents of a test
in Test.text_output. It can then be recorded in the
xunit file conveniently.

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

Extra info testclass
avocado.test: Fix bug we slipped during review

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

avocado.test: Fix bug we slipped during review
avocado.plugin.xunit: Pass type, traceback and system output.

Pass type, traceback and system output to the result XML.
Add function to escape/quote XML attributes.

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