Fixed failure due to a too sensitive command
authorJozef Behran <jbehran@cisco.com>
Wed, 19 Aug 2015 15:14:31 +0000 (17:14 +0200)
committerJozef Behran <jbehran@cisco.com>
Mon, 24 Aug 2015 13:20:12 +0000 (15:20 +0200)
There is a command in the "Verify Keyword Does Not Fail
Within Timeout" keyword which tried to catch the "timeout
failure" error but the problem is that the "timeout failure"
error looks different on different versions of Robot
Framework. The result is that the test fails on any Robot
Framework version except the one that it was debugged on.
The fix simply reduces the sensitivity of the command to
"any error is ok with me".

Change-Id: I4ecd7b5f7c2ea7bc070313dc69b3a7c7d3f96908
Signed-off-by: Jozef Behran <jbehran@cisco.com>
test/csit/libraries/WaitForFailure.robot

index e2cb1130f72bc0c6ad3d45e4b4ef95631ddf671a..84cbdb7b45e0864f640550ab08eae01a8947b8dc 100644 (file)
@@ -39,5 +39,5 @@ Verify_Keyword_Does_Not_Fail_Within_Timeout
     [Arguments]    ${timeout}    ${refresh}    @{cell_list}
     [Documentation]    Some checks report false success for a short time. This keyword verifies no failure does happen within timeout period.
     ...    This keyword does not report the return value of the cell list execution.
     [Arguments]    ${timeout}    ${refresh}    @{cell_list}
     [Documentation]    Some checks report false success for a short time. This keyword verifies no failure does happen within timeout period.
     ...    This keyword does not report the return value of the cell list execution.
-    BuiltIn.Run_Keyword_And_Expect_Error    Keyword 'Keyword_Should_Fail_In_Any_Way' failed after retrying for *.    Confirm_Keyword_Fails_Within_Timeout    ${timeout}    ${refresh}    @{cell_list}
+    BuiltIn.Run_Keyword_And_Expect_Error    *    Confirm_Keyword_Fails_Within_Timeout    ${timeout}    ${refresh}    @{cell_list}
     # TODO: '*' means we are not sure about formatting of ${timeout}. Check whether Robot can print it for us.
     # TODO: '*' means we are not sure about formatting of ${timeout}. Check whether Robot can print it for us.