aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYulong Pei <yulong.pei@intel.com>2021-03-17 00:43:08 +0800
committerVratko Polak <vrpolak@cisco.com>2021-03-18 19:01:43 +0000
commit500dba02e62ba24f94972a0ef8f023418a7eee09 (patch)
tree4e9ece6411a474863e9e71dd437906428d755ad0
parent0f187ebc52b0eb959c0065ad3b67d8a81d273820 (diff)
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 <yulong.pei@intel.com> Change-Id: Ie86a549b222d28b8cecc889807044476975dffb1
l---------PyPI/MLRsearch/MLRsearch2
-rw-r--r--resources/libraries/python/TrafficGenerator.py2
2 files changed, 2 insertions, 2 deletions
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(