X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Flibraries%2Frobot%2Fshared%2Ftest_setup.robot;h=e2fcfc5f877d7d74ab29b16b5dbba664c48423f5;hb=f352e4ff6f74bb8dcdc85241c5a92c6f0da1fb76;hp=941b90490aae3476862cfda97cda91b8fb15a983;hpb=d68951ac245150eeefa6e0f4156e4c1b5c9e9325;p=csit.git diff --git a/resources/libraries/robot/shared/test_setup.robot b/resources/libraries/robot/shared/test_setup.robot index 941b90490a..e2fcfc5f87 100644 --- a/resources/libraries/robot/shared/test_setup.robot +++ b/resources/libraries/robot/shared/test_setup.robot @@ -1,4 +1,4 @@ -# Copyright (c) 2019 Cisco and/or its affiliates. +# Copyright (c) 2021 Cisco and/or its affiliates. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at: @@ -29,6 +29,7 @@ | | [Arguments] | @{actions} | | | | Reset PAPI History On All DUTs | ${nodes} +| | ${int} = | Set Variable If | ${nic_vfs} > 0 | prevf | pf | | Create base startup configuration of VPP on all DUTs | | FOR | ${action} | IN | @{actions} | | | Run Keyword | Additional Test Setup Action For ${action} @@ -41,3 +42,10 @@ | | FOR | ${dut} | IN | @{duts} | | | Clean Up Namespaces | ${nodes['${dut}']} | | END + +| Additional Test Setup Action For performance +| | [Documentation] +| | ... | Additional Setup for tests which uses namespace. +| | +| | ${trex_running}= | Is Trex Running | ${tg} +| | Run Keyword Unless | ${trex_running} | Startup Trex | ${tg} | ${osi_layer}