Renamed Test Cleanup to Suite Cleanup; fix teardown to work properly in test suites
[osm/tests.git] / robot-systest / testsuite / basic_13-ns_relations.robot
index 04c0cff..cdc61d6 100644 (file)
@@ -24,7 +24,7 @@ Resource   %{ROBOT_DEVOPS_FOLDER}/lib/juju_lib.robot
 
 Variables   %{ROBOT_DEVOPS_FOLDER}/resources/basic_13-ns_relations.py
 
-Suite Teardown   Run Keyword And Ignore Error   Test Cleanup
+Suite Teardown   Run Keyword And Ignore Error   Suite Cleanup
 
 
 *** Variables ***
@@ -94,12 +94,12 @@ Delete VNF Descriptor Requires
 
 
 *** Keywords ***
-Test Cleanup
+Suite Cleanup
     [Documentation]  Test Suite Cleanup: Deleting descriptors and NS instance
 
-    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}