Check for all default tables before failure
[integration/test.git] / csit / libraries / OpenStackOperations.robot
index b1ee847783bddd67e339830886678bc66315ee05..73b39b5ed64d9551cf2221599f82c3155b8a4a23 100644 (file)
@@ -1118,8 +1118,8 @@ Verify Expected Default Tables
     BuiltIn.Log    ${flow_dump}
     ${failed_table_list} =    BuiltIn.Create List
     : FOR    ${table}    IN    @{DEFAULT_FLOW_TABLES}
-    \    Builtin.Run Keyword And Ignore Error    ${rc}    Builtin.Should Match Regexp    ${flow_dump}    .*table=${table}.*priority=0
-    \    BuiltIn.Run Keyword If    ${rc} == "FAIL"    Collections.Append To List    ${failed_table_list}    ${table}
+    \    ${rc} =    Builtin.Run Keyword And Return Status    Builtin.Should Not Match Regexp    ${flow_dump}    .*table=${table}.*priority=0
+    \    BuiltIn.Run Keyword If    ${rc}    Collections.Append To List    ${failed_table_list}    ${table}
     [Return]    ${failed_table_list}
 
 Get Project Id