Upgrade RF syntax for v3.2 compatibility
[integration/test.git] / csit / suites / openflowplugin / Longevity / 010__longevity_test.robot
index 631eecc7e76165c58ea33876971222bc5b5aed8a..4955b353c2b8c49ba116d4f5ba5b4f856c709bd7 100644 (file)
@@ -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}