test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V2] tests/hotplug_mp:add parameters when igb_uio
@ 2019-07-29  7:56 zhuwenhui
  2019-08-08  9:12 ` Tu, Lijuan
  0 siblings, 1 reply; 2+ messages in thread
From: zhuwenhui @ 2019-07-29  7:56 UTC (permalink / raw)
  To: dts; +Cc: zhuwenhui

Change test cases based on dpdk bbe29a9bd7ab6feab.

Signed-off-by: zhuwenhui <wenhuix.zhu@intel.com>
---
 tests/TestSuite_hotplug_mp.py | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/tests/TestSuite_hotplug_mp.py b/tests/TestSuite_hotplug_mp.py
index ff89164..3a43058 100644
--- a/tests/TestSuite_hotplug_mp.py
+++ b/tests/TestSuite_hotplug_mp.py
@@ -42,17 +42,20 @@ class TestHotplugMp(TestCase):
         """
         Setup primary process and two secondary processes.
         """
+        self.iova_param = ""
+        if self.drivername in ["igb_uio"]:
+            self.iova_param = "--iova-mode=pa"
         out = self.session_pri.send_expect(
-            "./examples/multi_process/hotplug_mp/%s/hotplug_mp --proc-type=auto"
-            % self.target, "example>")
+            "./examples/multi_process/hotplug_mp/%s/hotplug_mp %s --proc-type=auto"
+            % (self.target, self.iova_param), "example>")
         self.verify("Auto-detected process type: PRIMARY" in out,
                     "Failed to setup primary process!")
         for out in [self.session_sec_1.send_expect(
-                        "./examples/multi_process/hotplug_mp/%s/hotplug_mp --proc-type=auto"
-                        % self.target, "example>"),
+                        "./examples/multi_process/hotplug_mp/%s/hotplug_mp %s --proc-type=auto"
+                        % (self.target, self.iova_param), "example>"),
                     self.session_sec_2.send_expect(
-                        "./examples/multi_process/hotplug_mp/%s/hotplug_mp --proc-type=auto"
-                        % self.target, "example>")]:
+                        "./examples/multi_process/hotplug_mp/%s/hotplug_mp %s --proc-type=auto"
+                        % (self.target, self.iova_param), "example>")]:
             self.verify("Auto-detected process type: SECONDARY" in out,
                         "Failed to setup secondary process!")
 
-- 
2.17.2


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

* Re: [dts] [PATCH V2] tests/hotplug_mp:add parameters when igb_uio
  2019-07-29  7:56 [dts] [PATCH V2] tests/hotplug_mp:add parameters when igb_uio zhuwenhui
@ 2019-08-08  9:12 ` Tu, Lijuan
  0 siblings, 0 replies; 2+ messages in thread
From: Tu, Lijuan @ 2019-08-08  9:12 UTC (permalink / raw)
  To: Zhu, WenhuiX, dts; +Cc: Zhu, WenhuiX

Applied, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of zhuwenhui
> Sent: Monday, July 29, 2019 3:56 PM
> To: dts@dpdk.org
> Cc: Zhu, WenhuiX <wenhuix.zhu@intel.com>
> Subject: [dts] [PATCH V2] tests/hotplug_mp:add parameters when igb_uio
> 
> Change test cases based on dpdk bbe29a9bd7ab6feab.
> 
> Signed-off-by: zhuwenhui <wenhuix.zhu@intel.com>
> ---
>  tests/TestSuite_hotplug_mp.py | 15 +++++++++------
>  1 file changed, 9 insertions(+), 6 deletions(-)
> 
> diff --git a/tests/TestSuite_hotplug_mp.py b/tests/TestSuite_hotplug_mp.py
> index ff89164..3a43058 100644
> --- a/tests/TestSuite_hotplug_mp.py
> +++ b/tests/TestSuite_hotplug_mp.py
> @@ -42,17 +42,20 @@ class TestHotplugMp(TestCase):
>          """
>          Setup primary process and two secondary processes.
>          """
> +        self.iova_param = ""
> +        if self.drivername in ["igb_uio"]:
> +            self.iova_param = "--iova-mode=pa"
>          out = self.session_pri.send_expect(
> -            "./examples/multi_process/hotplug_mp/%s/hotplug_mp --proc-
> type=auto"
> -            % self.target, "example>")
> +            "./examples/multi_process/hotplug_mp/%s/hotplug_mp %s --proc-
> type=auto"
> +            % (self.target, self.iova_param), "example>")
>          self.verify("Auto-detected process type: PRIMARY" in out,
>                      "Failed to setup primary process!")
>          for out in [self.session_sec_1.send_expect(
> -                        "./examples/multi_process/hotplug_mp/%s/hotplug_mp --
> proc-type=auto"
> -                        % self.target, "example>"),
> +                        "./examples/multi_process/hotplug_mp/%s/hotplug_mp %s -
> -proc-type=auto"
> +                        % (self.target, self.iova_param), "example>"),
>                      self.session_sec_2.send_expect(
> -                        "./examples/multi_process/hotplug_mp/%s/hotplug_mp --
> proc-type=auto"
> -                        % self.target, "example>")]:
> +                        "./examples/multi_process/hotplug_mp/%s/hotplug_mp %s -
> -proc-type=auto"
> +                        % (self.target, self.iova_param), "example>")]:
>              self.verify("Auto-detected process type: SECONDARY" in out,
>                          "Failed to setup secondary process!")
> 
> --
> 2.17.2


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

end of thread, other threads:[~2019-08-08  9:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-29  7:56 [dts] [PATCH V2] tests/hotplug_mp:add parameters when igb_uio zhuwenhui
2019-08-08  9:12 ` 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).