From d551ef4b72448c3ccb493559826b976a2d3d8649 Mon Sep 17 00:00:00 2001 From: Jan Gelety Date: Tue, 25 Oct 2016 18:18:50 +0200 Subject: [PATCH] Use 3 tries to prepare DUT for testing - workaround to deal with occasional vpp restart issue Change-Id: I74a9148045bf4f80c9ba943e9c74338e08b2a72e Signed-off-by: Jan Gelety --- resources/libraries/robot/default.robot | 4 +++- tests/func/__init__.robot | 2 +- 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} -- 2.16.6