From 429ea989e665ebc3dac381c2629662f327dd9a46 Mon Sep 17 00:00:00 2001 From: Brady Johnson Date: Tue, 30 Aug 2016 17:50:10 +0200 Subject: Fix problem with SFC test - If its not possible to get the IPs, then exit - Patch Set 2: addressed code review comments Change-Id: I16e22513b32e2b0da311ebcc280f3611570634a3 Signed-off-by: Brady Johnson --- testcases/features/sfc/sfc.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'testcases/features/sfc') diff --git a/testcases/features/sfc/sfc.py b/testcases/features/sfc/sfc.py index f8af51060..3cf1052b6 100755 --- a/testcases/features/sfc/sfc.py +++ b/testcases/features/sfc/sfc.py @@ -238,6 +238,11 @@ def main(): except: logger.debug("Problems assigning floating IP to SFs") + # If no IPs were obtained, then we cant continue + if not ips: + logger.error('Failed to obtain IPs, cant continue, exiting') + return + logger.debug("Floating IPs for SFs: %s..." % ips) # SSH TO START THE VXLAN_TOOL ON SF1 -- cgit 1.2.3-korg