Add bug references to bgp-ingest suites
[integration/test.git] / csit / libraries / SetupUtils.robot
index b042c48515e371c3a0b00691e01be6cc1c4ec29c..573677787e45ec0fd177ba960e30d33d11a5c113 100644 (file)
@@ -23,3 +23,12 @@ Setup_Test_With_Logging_And_Without_Fast_Failing
     ...    Needed if the recommended default is to be overriden.
     FailFast.Run_Even_When_Failing_Fast
     BuiltIn.Run Keyword And Ignore Error    KarafKeywords.Log_Testcase_Start_To_Controller_Karaf
+
+Teardown_Test_Show_Bugs_And_Start_Fast_Failing_If_Test_Failed
+    [Documentation]    Test case teardown. Show linked bugs and start fast failing in case of failure.
+    BuiltIn.Run_Keyword_If_Test_Failed    BuiltIn.Set_Suite_Variable    ${SuiteFastFail}    True
+    Utils.Report_Failure_And_Point_To_Linked_Bugs
+
+Teardown_Test_Show_Bugs_If_Test_Failed
+    [Documentation]    Test case teardown. Show linked bugs in case of failure.
+    Utils.Report_Failure_And_Point_To_Linked_Bugs