X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2FVPPUtil.py;h=03d39d3e23aa832a95f31541db967469e48ab266;hp=c60509f01800b5deb35d596658ed28e8737f54ae;hb=1577123a3c27541181097cb4186aa8855f20b1cc;hpb=cac8f76ce1f9085e9eede19b250f4a4cb9b199e0 diff --git a/resources/libraries/python/VPPUtil.py b/resources/libraries/python/VPPUtil.py index c60509f018..03d39d3e23 100644 --- a/resources/libraries/python/VPPUtil.py +++ b/resources/libraries/python/VPPUtil.py @@ -216,7 +216,7 @@ class VPPUtil(object): host=node['host'], if_data=if_data)) @staticmethod - def vpp_enable_traces_on_dut(node, fail_on_error=True): + def vpp_enable_traces_on_dut(node, fail_on_error=False): """Enable vpp packet traces on the DUT node. :param node: DUT node to set up. @@ -234,14 +234,12 @@ class VPPUtil(object): for cmd in cmds: try: PapiExecutor.run_cli_cmd(node, cmd) - except AssertionError as err: + except AssertionError: if fail_on_error: raise - else: - logger.error(repr(err)) @staticmethod - def vpp_enable_traces_on_all_duts(nodes, fail_on_error=True): + def vpp_enable_traces_on_all_duts(nodes, fail_on_error=False): """Enable vpp packet traces on all DUTs in the given topology. :param nodes: Nodes in the topology.