Renamed Test Cleanup to Suite Cleanup; fix teardown to work properly in test suites
[osm/tests.git] / robot-systest / testsuite / hackfest_multivdu.robot
index 5bbdd10..67cb910 100644 (file)
@@ -25,7 +25,7 @@ Resource   %{ROBOT_DEVOPS_FOLDER}/lib/ssh_lib.robot
 
 Variables   %{ROBOT_DEVOPS_FOLDER}/resources/hackfest_multivdu_ns_data.py
 
-Suite Teardown   Run Keyword And Ignore Error   Test Cleanup
+Suite Teardown   Run Keyword And Ignore Error   Suite Cleanup
 
 
 *** Variables ***
@@ -95,11 +95,11 @@ Delete VNF Descriptor Test
 
 
 *** Keywords ***
-Test Cleanup
+Suite Cleanup
     [Documentation]  Test Suit Cleanup: Deleting Descriptor, instance and vim
 
-    Run Keyword If Test Failed  Delete NS   ${ns_name}
+    Run Keyword If Any Tests Failed  Delete NS   ${ns_name}
 
-    Run Keyword If Test Failed  Delete NSD   ${nsd_name}
+    Run Keyword If Any Tests Failed  Delete NSD   ${nsd_name}
 
-    Run Keyword If Test Failed  Delete VNFD   ${vnfd_name}
+    Run Keyword If Any Tests Failed  Delete VNFD   ${vnfd_name}