Use 3 tries to prepare DUT for testing 72/3572/4
authorJan Gelety <jgelety@cisco.com>
Tue, 25 Oct 2016 16:18:50 +0000 (18:18 +0200)
committerMaciek Konstantynowicz <mkonstan@cisco.com>
Wed, 26 Oct 2016 14:27:09 +0000 (14:27 +0000)
- workaround to deal with occasional vpp restart issue

Change-Id: I74a9148045bf4f80c9ba943e9c74338e08b2a72e
Signed-off-by: Jan Gelety <jgelety@cisco.com>
resources/libraries/robot/default.robot
tests/func/__init__.robot

index 238749a..eeef04a 100644 (file)
@@ -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
index 2016146..7d3c64e 100644 (file)
@@ -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}