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 2444CA0487 for ; Mon, 29 Jul 2019 09:51:30 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DD90D1BF3F; Mon, 29 Jul 2019 09:51:29 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id F15671BF2C for ; Mon, 29 Jul 2019 09:51:28 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Jul 2019 00:51:27 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,321,1559545200"; d="scan'208";a="199509118" Received: from unknown (HELO localhost.localdomain.sh.intel.com) ([10.240.176.135]) by fmsmga002.fm.intel.com with ESMTP; 29 Jul 2019 00:51:26 -0700 From: zhuwenhui To: dts@dpdk.org Cc: zhuwenhui Date: Mon, 29 Jul 2019 15:56:04 +0800 Message-Id: <1564386964-120312-1-git-send-email-wenhuix.zhu@intel.com> X-Mailer: git-send-email 1.9.3 Subject: [dts] [PATCH V2] tests/hotplug_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 | 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