diff options
author | 2019-08-07 14:47:34 +0000 | |
---|---|---|
committer | 2019-08-14 10:15:25 +0000 | |
commit | 8786e91e2845e1ac9d25568d67911cb9ef4d7e67 (patch) | |
tree | 3f976d1788a4be4a33053c4af0e96179c4ffc292 /resources/libraries/robot | |
parent | 4eba78a1601360187b89848113564c4a4dce3d15 (diff) |
FIX: Vhost teardown
If test failed before vnf_manager is created then teardown
does fail as well due to missing variable.
Signed-off-by: Peter Mikus <pmikus@cisco.com>
Change-Id: I0b23648bce78738cf4c377979d7a06fb488d990d
(cherry picked from commit 8f41f1d040453d963440d8cc99fb2b957521120b)
Diffstat (limited to 'resources/libraries/robot')
-rw-r--r-- | resources/libraries/robot/shared/test_teardown.robot | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/resources/libraries/robot/shared/test_teardown.robot b/resources/libraries/robot/shared/test_teardown.robot index cad3c620e0..e130038fbc 100644 --- a/resources/libraries/robot/shared/test_teardown.robot +++ b/resources/libraries/robot/shared/test_teardown.robot @@ -65,7 +65,9 @@ | | ... | Additional teardown for tests which uses vhost(s) and VM(s). | | ... | | Show VPP vhost on all DUTs | ${nodes} -| | vnf_manager.Kill All VMs +| | ${vnf_status} | ${value}= | Run Keyword And Ignore Error +| | ... | Keyword Should Exist | vnf_manager.Kill All VMs +| | Run Keyword If | '${vnf_status}' == 'PASS' | vnf_manager.Kill All VMs | Additional Test Tear Down Action For nat | | [Documentation] |