aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Gelety <jgelety@cisco.com>2016-10-25 18:18:50 +0200
committerMaciek Konstantynowicz <mkonstan@cisco.com>2016-10-26 14:27:09 +0000
commitd551ef4b72448c3ccb493559826b976a2d3d8649 (patch)
tree4db3c975e3ebcd671bced1e8206a336d02caba72
parent868380b0204758ef34c6be5bae0c9bdb00c4107f (diff)
Use 3 tries to prepare DUT for testing
- workaround to deal with occasional vpp restart issue Change-Id: I74a9148045bf4f80c9ba943e9c74338e08b2a72e Signed-off-by: Jan Gelety <jgelety@cisco.com>
-rw-r--r--resources/libraries/robot/default.robot4
-rw-r--r--tests/func/__init__.robot2
2 files changed, 4 insertions, 2 deletions
diff --git a/resources/libraries/robot/default.robot b/resources/libraries/robot/default.robot
index 238749aef1..eeef04a8a2 100644
--- a/resources/libraries/robot/default.robot
+++ b/resources/libraries/robot/default.robot
@@ -24,7 +24,9 @@
*** Keywords ***
| Setup all DUTs before test
| | [Documentation] | Setup all DUTs in topology before test execution
-| | Setup All DUTs | ${nodes}
+| | ${duts}= | Get Matches | ${nodes} | DUT*
+| | :FOR | ${dut} | IN | @{duts}
+| | | Wait Until Keyword Succeeds | 3x | 1 min | Setup Dut | ${nodes['${dut}']}
| Setup all TGs before traffic script
| | [Documentation] | Prepare all TGs before traffic scripts execution
diff --git a/tests/func/__init__.robot b/tests/func/__init__.robot
index 2016146e3b..7d3c64e78b 100644
--- a/tests/func/__init__.robot
+++ b/tests/func/__init__.robot
@@ -16,5 +16,5 @@
| Resource | resources/libraries/robot/interfaces.robot
| Library | resources.libraries.python.SetupFramework
| Suite Setup | Run Keywords | Setup Framework | ${nodes}
-| ... | AND | Setup All DUTs | ${nodes}
+| ... | AND | Setup all DUTs before test
| ... | AND | Update All Interface Data On All Nodes | ${nodes}