avocado: Add fail_on_error decorator
Give to test writers the fail_on_error decorator, which
should turn any generic exception into an avocado
TestFail.
This is important for some tests that can raise
any exception during a complex operation, and any of those
exceptions can be considered a test failure.
Signed-off-by: NLucas Meneghel Rodrigues <lmr@redhat.com>
Showing
examples/tests/fail_on_error.py
0 → 100755
想要评论请 注册 或 登录