Add karaf log exceptions check to Genius 83/74783/4
authorVishal Thapar <vthapar@redhat.com>
Fri, 3 Aug 2018 03:16:51 +0000 (08:46 +0530)
committerSam Hague <shague@redhat.com>
Mon, 13 Aug 2018 14:19:47 +0000 (14:19 +0000)
JIRA: GENIUS-200
Change-Id: Ie931c64747114df1887fdf70dc6da502ff9fe865
Signed-off-by: Vishal Thapar <vthapar@redhat.com>
csit/libraries/Genius.robot

index dca2e853287afe72701a113792cbcdbd76e2e37b..82a6be4b7ed54883d68163adf1c4666a5de742f1 100644 (file)
@@ -160,10 +160,11 @@ Genius Test Setup
     BuiltIn.Run Keyword And Ignore Error    KarafKeywords.Log_Testcase_Start_To_Controller_Karaf
 
 Genius Test Teardown
-    [Arguments]    ${data_models}
+    [Arguments]    ${data_models}    ${test_name}=${SUITE_NAME}.${TEST_NAME}    ${fail}=${FAIL_ON_EXCEPTIONS}
     OVSDB.Get DumpFlows And Ovsconfig    ${conn_id_1}    BR1
     OVSDB.Get DumpFlows And Ovsconfig    ${conn_id_2}    BR2
     BuiltIn.Run Keyword And Ignore Error    DataModels.Get Model Dump    ${ODL_SYSTEM_IP}    ${data_models}
+    KarafKeywords.Fail If Exceptions Found During Test    ${test_name}    fail=${fail}
 
 ITM Direct Tunnels Start Suite
     [Documentation]    start suite for itm scalability