Updates:
Status: WontFix
Labels: -Target-2.6.2
Comment #1 on issue 962 by pekka.klarck: Possibility to know in suite
teardown has teardown itself failed
http://code.google.com/p/robotframework/issues/detail?id=962
We decided not to implement this because we found a way to get the needed
functionality using the currently available features. Basically you can run
the original suite teardown (or any other keyword) using Run Keyword And
Ignore Error and then run other keywords based on the status. An example
demonstrating this idea is attached.
To try the example, run it first without arguments like
pybot collect_logs_if_keyword_failed.txt
and then set TEARDWON_STATUS variable like
pybot --variable TEARDOWN_STATUS:FAIL collect_logs_if_keyword_failed.txt
Attachments:
collect_logs_if_keyword_failed.txts 657 bytes