X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=csit%2Fsuites%2Fopenflowplugin%2FLongevity%2F010__longevity_test.robot;h=4955b353c2b8c49ba116d4f5ba5b4f856c709bd7;hb=94651ca9711d8eb316721775561e815830bc6c7e;hp=631eecc7e76165c58ea33876971222bc5b5aed8a;hpb=2d7e1faef8f0641941ddf56e73227fc76c127297;p=integration%2Ftest.git diff --git a/csit/suites/openflowplugin/Longevity/010__longevity_test.robot b/csit/suites/openflowplugin/Longevity/010__longevity_test.robot index 631eecc7e7..4955b353c2 100644 --- a/csit/suites/openflowplugin/Longevity/010__longevity_test.robot +++ b/csit/suites/openflowplugin/Longevity/010__longevity_test.robot @@ -24,12 +24,13 @@ Longevity Test ${max_duration}= DateTime.Convert Time ${TEST_LENGTH} number ${start_time}= DateTime.Get Current Date # This loop is not infinite, so going "sufficiently large" for now. - : FOR ${i} IN RANGE 1 65536 - \ ${status} ${error_message} ${topology_discover_time} WorkflowsOpenFlow.Workflow Full Mesh Topology ${switches} ${SUSTAIN_TIME} - \ ${current_time}= DateTime.Get Current Date - \ ${duration}= DateTime.Subtract Date From Date ${current_time} ${start_time} number - \ Exit For Loop If '${status}' == 'FAIL' - \ Exit For Loop If ${duration} > ${max_duration} + FOR ${i} IN RANGE 1 65536 + ${status} ${error_message} ${topology_discover_time} WorkflowsOpenFlow.Workflow Full Mesh Topology ${switches} ${SUSTAIN_TIME} + ${current_time}= DateTime.Get Current Date + ${duration}= DateTime.Subtract Date From Date ${current_time} ${start_time} number + Exit For Loop If '${status}' == 'FAIL' + Exit For Loop If ${duration} > ${max_duration} + END ${duration_compact}= DateTime.Convert Time ${duration} compact Log to console ${\n} Log To Console Execution stopped because: ${error_message}