test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1] framework/dut:optimize code
@ 2020-02-18  4:22 Haiyang Zhao
  2020-02-18  4:22 ` [dts] [PATCH V1] tests/l2fwd:fix a bug Haiyang Zhao
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Haiyang Zhao @ 2020-02-18  4:22 UTC (permalink / raw)
  To: dts; +Cc: Haiyang Zhao

*.test performance with trex support two port map methods, 
  add the pci map method.

Signed-off-by: Haiyang Zhao <haiyangx.zhao@intel.com>
---
 framework/dut.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/framework/dut.py b/framework/dut.py
index 4f376f5..4b8bd3e 100644
--- a/framework/dut.py
+++ b/framework/dut.py
@@ -1149,7 +1149,8 @@ class Dut(Crb):
             if peer is not None:
                 for remotePort in range(len(self.tester.ports_info)):
                     if self.tester.ports_info[remotePort]['type'].lower() == 'trex':
-                        if self.tester.ports_info[remotePort]['intf'].lower() == peer.lower():
+                        if self.tester.ports_info[remotePort]['intf'].lower() == peer.lower() or \
+                                self.tester.ports_info[remotePort]['pci'].lower() == peer.lower():
                             hits[remotePort] = True
                             self.ports_map[dutPort] = remotePort
                             break
-- 
2.17.1


^ permalink raw reply	[flat|nested] 8+ messages in thread
* [dts] [PATCH V1] framework/dut:optimize code
@ 2020-01-22  3:41 Haiyang Zhao
  2020-02-10  8:54 ` Tu, Lijuan
  0 siblings, 1 reply; 8+ messages in thread
From: Haiyang Zhao @ 2020-01-22  3:41 UTC (permalink / raw)
  To: dts; +Cc: Haiyang Zhao

*.add a blank for eal_str if
 need to add shared lib patch.

Signed-off-by: Haiyang Zhao <haiyangx.zhao@intel.com>
---
 framework/dut.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/framework/dut.py b/framework/dut.py
index 8af5bed..4f376f5 100644
--- a/framework/dut.py
+++ b/framework/dut.py
@@ -224,7 +224,7 @@ class Dut(Crb):
         use_shared_lib = settings.load_global_setting(settings.HOST_SHARED_LIB_SETTING)
         shared_lib_path = settings.load_global_setting(settings.HOST_SHARED_LIB_PATH)
         if use_shared_lib == 'true' and shared_lib_path and 'Virt' not in str(self):
-            eal_str = eal_str + ' -d {}'.format(shared_lib_path)
+            eal_str = eal_str + ' -d {} '.format(shared_lib_path)
 
         return eal_str
 
-- 
1.8.3.1


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-02-18  7:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-18  4:22 [dts] [PATCH V1] framework/dut:optimize code Haiyang Zhao
2020-02-18  4:22 ` [dts] [PATCH V1] tests/l2fwd:fix a bug Haiyang Zhao
2020-02-18  7:09   ` Tu, Lijuan
2020-02-18  4:22 ` [dts] [PATCH V1] tests/vhost_virtio_pmd_interrupt:optimize code Haiyang Zhao
2020-02-18  7:09   ` Tu, Lijuan
2020-02-18  7:09 ` [dts] [PATCH V1] framework/dut:optimize code Tu, Lijuan
  -- strict thread matches above, loose matches on Subject: below --
2020-01-22  3:41 Haiyang Zhao
2020-02-10  8:54 ` Tu, Lijuan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).