From: Yulong Pei Date: Tue, 16 Mar 2021 16:43:08 +0000 (+0800) Subject: fix two issues X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=commitdiff_plain;h=500dba02e62ba24f94972a0ef8f023418a7eee09;hp=0f187ebc52b0eb959c0065ad3b67d8a81d273820 fix two issues 1. wrong symbol link path for MLRsearch. 2. self._received force to integer in _parse_traffic_results function. Signed-off-by: Yulong Pei Change-Id: Ie86a549b222d28b8cecc889807044476975dffb1 --- diff --git a/PyPI/MLRsearch/MLRsearch b/PyPI/MLRsearch/MLRsearch index 4f23bb392a..a4338e6428 120000 --- a/PyPI/MLRsearch/MLRsearch +++ b/PyPI/MLRsearch/MLRsearch @@ -1 +1 @@ -/home/vrpolak/fdio/csit/resources/libraries/python/MLRsearch \ No newline at end of file +../../resources/libraries/python/MLRsearch \ No newline at end of file diff --git a/resources/libraries/python/TrafficGenerator.py b/resources/libraries/python/TrafficGenerator.py index ce01aa613b..455a21ebb8 100644 --- a/resources/libraries/python/TrafficGenerator.py +++ b/resources/libraries/python/TrafficGenerator.py @@ -1040,7 +1040,7 @@ class TrafficGenerator(AbstractMeasurer): """ if self._received is None: raise RuntimeError(u"The traffic generation has not been issued") - if self._received == u"0": + if self._received == 0: raise RuntimeError(u"No traffic forwarded") def partial_traffic_loss_accepted(