From: Jozef Behran Date: Fri, 4 Mar 2016 10:46:12 +0000 (+0100) Subject: Clear known bug ID in SetupUtils.Teardown_Test_Show_Bugs_... X-Git-Tag: release/beryllium-sr1~28 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F72%2F35772%2F2;p=integration%2Ftest.git Clear known bug ID in SetupUtils.Teardown_Test_Show_Bugs_... 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 --- diff --git a/csit/libraries/SetupUtils.robot b/csit/libraries/SetupUtils.robot index 60d8c92f52..9e1152ff37 100644 --- a/csit/libraries/SetupUtils.robot +++ b/csit/libraries/SetupUtils.robot @@ -38,7 +38,8 @@ Set_Unknown_Bug_Id 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