autotest/autotest — pull request #111 by jzupka (2011-12-09 12:47:56+00:00)
Title: Autotest: Add subtest inteface to client utils.

This class and some decorators are for easy way of start function like a subtest.
Subtests result are collected and it is posible for review on end of test.
Subtest class and decorators should be placed in autotest_lib.client.utils.

There is possibility how to change results format.

Example:
@staticmethod
def result_to_string(result):
"""
@param result: Result of test.
"""
print result
return ("[%(result)]%(name): %(output)") % (result)

1)
Subtest.result_to_string = result_to_string
Subtest.get_text_result()

2)
Subtest.get_text_result(result_to_string)

Signed-off-by: Jiří Župka