X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2FTrafficScriptExecutor.py;h=8d899044fcba13b6783f0ad4b982f3a3f37d90ed;hb=ccdcc18ff5ab339f715179d3215fe174252a1187;hp=f730d3a0e3bb5345c8dd3fd5da3e52d7028969c7;hpb=559a2b904cf95e4a5a82726d8b3791e57e7a9f9c;p=csit.git diff --git a/resources/libraries/python/TrafficScriptExecutor.py b/resources/libraries/python/TrafficScriptExecutor.py index f730d3a0e3..8d899044fc 100644 --- a/resources/libraries/python/TrafficScriptExecutor.py +++ b/resources/libraries/python/TrafficScriptExecutor.py @@ -37,7 +37,7 @@ class TrafficScriptExecutor(object): @staticmethod def run_traffic_script_on_node(script_file_name, node, script_args, - timeout=10): + timeout=60): """Run traffic script on the TG node. :param script_file_name: Traffic script name. @@ -51,6 +51,7 @@ class TrafficScriptExecutor(object): :raises RuntimeError: ICMP echo Rx timeout. :raises RuntimeError: DHCP REQUEST Rx timeout. :raises RuntimeError: TCP/UDP Rx timeout. + :raises RuntimeError: ARP reply timeout. :raises RuntimeError: Traffic script execution failed. """ logger.trace("{}".format(timeout)) @@ -75,6 +76,8 @@ class TrafficScriptExecutor(object): raise RuntimeError("DHCP REQUEST Rx timeout") elif "RuntimeError: TCP/UDP Rx timeout" in stderr: raise RuntimeError("TCP/UDP Rx timeout") + elif "Error occurred: ARP reply timeout" in stdout: + raise RuntimeError("ARP reply timeout") else: raise RuntimeError("Traffic script execution failed")