X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Flibraries%2Frobot%2Fshared%2Ftest_teardown.robot;h=5d2c2fa1654b7bf76c520edd564fb42e7e8729eb;hb=e310a40eab90bb5ecd8471dbbccc1d02daf2dea3;hp=f95e369b65103a8e6432dd2197a0f493356826f9;hpb=1577123a3c27541181097cb4186aa8855f20b1cc;p=csit.git diff --git a/resources/libraries/robot/shared/test_teardown.robot b/resources/libraries/robot/shared/test_teardown.robot index f95e369b65..5d2c2fa165 100644 --- a/resources/libraries/robot/shared/test_teardown.robot +++ b/resources/libraries/robot/shared/test_teardown.robot @@ -15,9 +15,9 @@ *** Settings *** | Resource | resources/libraries/robot/shared/container.robot -| Resource | resources/libraries/robot/shared/qemu.robot | Library | resources.libraries.python.PapiHistory | Library | resources.libraries.python.topology.Topology +| Variables | resources/libraries/python/Constants.py | ... | Documentation | Test teardown keywords. @@ -44,10 +44,9 @@ | | [Documentation] | | ... | Additional teardown for tests which uses performance measurement. | | ... -| | Set Test Variable | ${pkt_trace} | ${True} | | Run Keyword If Test Failed -| | ... | Send traffic at specified rate | ${perf_trial_duration} | 10000pps -| | ... | ${frame_size} | ${traffic_profile} +| | ... | Send traffic at specified rate | ${PERF_TRIAL_DURATION} | 10000pps +| | ... | ${frame_size} | ${traffic_profile} | pkt_trace=${True} | Additional Test Tear Down Action For packet_trace | | [Documentation] @@ -67,8 +66,9 @@ | | ... | Additional teardown for tests which uses vhost(s) and VM(s). | | ... | | Show VPP vhost on all DUTs | ${nodes} -| | Run Keyword If | "PERFTEST" in @{TEST TAGS} | vnf_manager.Kill All VMs -| | Run Keyword If | "DEVICETEST" in @{TEST TAGS} | vm_node.Qemu Kill +| | ${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]