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 D093DA052A; Mon, 3 Aug 2020 12:09:03 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 88C072952; Mon, 3 Aug 2020 12:09:03 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 27842255 for ; Mon, 3 Aug 2020 12:09:01 +0200 (CEST) IronPort-SDR: +Fn1U8EAV2SJ6FmRmO2x1svbNohjcFRvynzXsUC5iNEW34H4HgFBiJrmjhMS1FrqqpDiD5sBci X+pZxJeI8IkA== X-IronPort-AV: E=McAfee;i="6000,8403,9701"; a="131639758" X-IronPort-AV: E=Sophos;i="5.75,429,1589266800"; d="scan'208";a="131639758" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Aug 2020 03:09:00 -0700 IronPort-SDR: II3TIECFzrcdK1UgWutGyoJQji2p9a8a3SDWN2wEySUJyEzjfsDUkxueqIxwHijHERdIi3kvtv b7t6a9NqFN+A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,429,1589266800"; d="scan'208";a="396006223" Received: from unknown (HELO localhost.localdomain) ([10.240.183.222]) by fmsmga001.fm.intel.com with ESMTP; 03 Aug 2020 03:08:59 -0700 From: lingwei To: dts@dpdk.org Cc: lingwei Date: Mon, 3 Aug 2020 17:50:52 +0000 Message-Id: <20200803175052.3368-1-weix.ling@intel.com> X-Mailer: git-send-email 2.17.1 Subject: [dts] [PATCH V1] tests/TestSuite_mutiprocess.py add -w option when tester and dut in same server 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" add -w option when tester and dut in same server and specified mp_server and mp_client run with different cores Signed-off-by: lingwei --- tests/TestSuite_multiprocess.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/tests/TestSuite_multiprocess.py b/tests/TestSuite_multiprocess.py index 5a99ee3..218e008 100644 --- a/tests/TestSuite_multiprocess.py +++ b/tests/TestSuite_multiprocess.py @@ -312,16 +312,19 @@ class TestMultiprocess(TestCase): for execution in validExecutions: coreList = self.dut.get_core_list(execution['cores'], socket=self.socket) - coreMask = utils.create_mask(self.dut.get_core_list('1S/1C/1T')) + # get core with socket parameter to specified which core dut used when tester and dut in same server + coreMask = utils.create_mask(self.dut.get_core_list('1S/1C/1T', socket=self.socket)) portMask = utils.create_mask(self.dut_ports) - self.dut.send_expect(self.app_mp_server + " -n %d -c %s -- -p %s -n %d" % ( - self.dut.get_memory_channels(), "0xA0", portMask, execution['nprocs']), "Finished Process Init", 20) + # specified mp_server core and add -w option when tester and dut in same server + self.dut.send_expect(self.app_mp_server + " -n %d -c %s %s -- -p %s -n %d" % ( + self.dut.get_memory_channels(), coreMask, self.eal_param, portMask, execution['nprocs']), "Finished Process Init", 20) self.dut.send_expect("^Z", "\r\n") self.dut.send_expect("bg", "# ") for n in range(execution['nprocs']): time.sleep(5) - coreMask = utils.create_mask([coreList[n]]) + # use next core as mp_client core, different from mp_server + coreMask = utils.create_mask([str(int(coreList[n]) + 1)]) self.dut.send_expect(self.app_mp_client + " -n %d -c %s --proc-type=secondary -- -n %d" % ( self.dut.get_memory_channels(), coreMask, n), "Finished Process Init") self.dut.send_expect("^Z", "\r\n") -- 2.17.1