When a known bug ID is set to e.g. 1234 and the test steps
after that will catch the bug 1234, the bug ID 1234 is
reported (correctly). But then the rest of the test case is
skipped and the next one is started. This means that the
next test case will have the bug ID set to 1234 and if
it fails, it will also report it found bug 1234 while in
reality it was supposed to report a bug search link instead.
Fix the problem by clearing the bug ID after reporting the
bug.
Change-Id: I44d9c17bd9e22dc4792529dea0425a7f6d06940e
Signed-off-by: Jozef Behran <jbehran@cisco.com>
Set_Known_Bug_Id ${EMPTY}
SetupUtils__Report_Bugs_Causing_Failure
- BuiltIn.Run_Keyword_And_Return_If '${SetupUtils__Known_Bug_ID}' != '' Utils.Report_Failure_Due_To_Bug ${SetupUtils__Known_Bug_ID}
+ BuiltIn.Run_Keyword_If '${SetupUtils__Known_Bug_ID}' != '' Utils.Report_Failure_Due_To_Bug ${SetupUtils__Known_Bug_ID}
+ BuiltIn.Run_Keyword_And_Return_If '${SetupUtils__Known_Bug_ID}' != '' Set_Known_Bug_Id ${EMPTY}
Utils.Report_Failure_And_Point_To_Linked_Bugs
Teardown_Test_Show_Bugs_And_Start_Fast_Failing_If_Test_Failed