From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id CEE1AA0487 for ; Mon, 29 Jul 2019 07:17:39 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 8AA571BF2E; Mon, 29 Jul 2019 07:17:39 +0200 (CEST) Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id BD0FA1BF29 for ; Mon, 29 Jul 2019 07:17:38 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Jul 2019 22:17:37 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,321,1559545200"; d="scan'208";a="190428486" Received: from unknown (HELO localhost.localdomain.sh.intel.com) ([10.240.176.135]) by fmsmga001.fm.intel.com with ESMTP; 28 Jul 2019 22:17:36 -0700 From: zhuwenhui To: dts@dpdk.org Cc: zhuwenhui Date: Mon, 29 Jul 2019 13:22:15 +0800 Message-Id: <1564377735-117273-1-git-send-email-wenhuix.zhu@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V1] tests/hotpiug_mp:add parameters when igb_uio X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org Sender: "dts" change test cases based on dpdk bbe29a9bd7ab6feab. Signed-off-by: zhuwenhui --- tests/TestSuite_hotplug_mp.py | 42 ++++++++++++++++++++++++----------- 1 file changed, 29 insertions(+), 13 deletions(-) diff --git a/tests/TestSuite_hotplug_mp.py b/tests/TestSuite_hotplug_mp.py index ff89164..62f1982 100644 --- a/tests/TestSuite_hotplug_mp.py +++ b/tests/TestSuite_hotplug_mp.py @@ -42,19 +42,35 @@ class TestHotplugMp(TestCase): """ Setup primary process and two secondary processes. """ - out = self.session_pri.send_expect( - "./examples/multi_process/hotplug_mp/%s/hotplug_mp --proc-type=auto" - % self.target, "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>"), - self.session_sec_2.send_expect( - "./examples/multi_process/hotplug_mp/%s/hotplug_mp --proc-type=auto" - % self.target, "example>")]: - self.verify("Auto-detected process type: SECONDARY" in out, - "Failed to setup secondary process!") + if self.drivername == "igb_uio": + out = self.session_pri.send_expect( + "./examples/multi_process/hotplug_mp/%s/hotplug_mp --iova-mode=pa --proc-type=auto" + % self.target, "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 --iova-mode=pa --proc-type=auto" + % self.target, "example>"), + self.session_sec_2.send_expect( + "./examples/multi_process/hotplug_mp/%s/hotplug_mp --iova-mode=pa --proc-type=auto" + % self.target, "example>")]: + self.verify("Auto-detected process type: SECONDARY" in out, + "Failed to setup secondary process!") + + else: + out = self.session_pri.send_expect( + "./examples/multi_process/hotplug_mp/%s/hotplug_mp --proc-type=auto" + % self.target, "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>"), + self.session_sec_2.send_expect( + "./examples/multi_process/hotplug_mp/%s/hotplug_mp --proc-type=auto" + % self.target, "example>")]: + self.verify("Auto-detected process type: SECONDARY" in out, + "Failed to setup secondary process!") def multi_process_quit(self): """ -- 2.17.2