fix two issues 58/31658/2
authorYulong Pei <yulong.pei@intel.com>
Tue, 16 Mar 2021 16:43:08 +0000 (00:43 +0800)
committerVratko Polak <vrpolak@cisco.com>
Thu, 18 Mar 2021 19:01:43 +0000 (19:01 +0000)
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

PyPI/MLRsearch/MLRsearch
resources/libraries/python/TrafficGenerator.py

index 4f23bb3..a4338e6 120000 (symlink)
@@ -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
index ce01aa6..455a21e 100644 (file)
@@ -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(