aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python
diff options
context:
space:
mode:
authorJan Gelety <jgelety@cisco.com>2016-04-28 22:54:59 +0200
committerMatej Klotton <mklotton@cisco.com>2016-05-09 10:58:12 +0000
commit8935f5271dacc631d5b834b27b36bfad83c350c2 (patch)
treefbadbe1796758555178e5dc8ae7a34d231b2158a /resources/libraries/python
parentb19bcf36d9d9be1a771495547335fcfc7b3e446b (diff)
CSIT-19: MAC split-horizon group
- test case to test MAC split-horizon group functionality Change-Id: Iadee707f3670e5fc9c209bd8b072a65ea1af27cd Signed-off-by: Jan Gelety <jgelety@cisco.com>
Diffstat (limited to 'resources/libraries/python')
-rw-r--r--resources/libraries/python/TrafficScriptExecutor.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/resources/libraries/python/TrafficScriptExecutor.py b/resources/libraries/python/TrafficScriptExecutor.py
index 89362c5a56..fa4462393c 100644
--- a/resources/libraries/python/TrafficScriptExecutor.py
+++ b/resources/libraries/python/TrafficScriptExecutor.py
@@ -65,7 +65,10 @@ class TrafficScriptExecutor(object):
logger.debug("stderr: {}".format(stderr))
logger.debug("ret_code: {}".format(ret_code))
if ret_code != 0:
- raise Exception("Traffic script execution failed")
+ if "RuntimeError: ICMP echo Rx timeout" in stderr:
+ raise Exception("ICMP echo Rx timeout")
+ else:
+ raise Exception("Traffic script execution failed")
@staticmethod
def traffic_script_gen_arg(rx_if, tx_if, src_mac, dst_mac, src_ip, dst_ip):