Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/84936/?format=api
https://patches.dpdk.org/api/patches/84936/?format=api", "web_url": "https://patches.dpdk.org/project/dts/patch/20201210112655.22020-1-junx.w.zhou@intel.com/", "project": { "id": 3, "url": "https://patches.dpdk.org/api/projects/3/?format=api", "name": "DTS", "link_name": "dts", "list_id": "dts.dpdk.org", "list_email": "dts@dpdk.org", "web_url": "", "scm_url": "git://dpdk.org/tools/dts", "webscm_url": "http://git.dpdk.org/tools/dts/", "list_archive_url": "https://inbox.dpdk.org/dts", "list_archive_url_format": "https://inbox.dpdk.org/dts/{}", "commit_url_format": "" }, "msgid": "<20201210112655.22020-1-junx.w.zhou@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dts/20201210112655.22020-1-junx.w.zhou@intel.com", "date": "2020-12-10T11:26:55", "name": "[V1] tests/TestSuite_dynamic_config:Modify the hard coded appparameter", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "34a3939d7fb00a9860bfa0b8db95a5f1a93686fa", "submitter": { "id": 1646, "url": "https://patches.dpdk.org/api/people/1646/?format=api", "name": "Zhou, JunX W", "email": "junx.w.zhou@intel.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dts/patch/20201210112655.22020-1-junx.w.zhou@intel.com/mbox/", "series": [ { "id": 14233, "url": "https://patches.dpdk.org/api/series/14233/?format=api", "web_url": "https://patches.dpdk.org/project/dts/list/?series=14233", "date": "2020-12-10T11:26:55", "name": "[V1] tests/TestSuite_dynamic_config:Modify the hard coded appparameter", "version": 1, "mbox": "https://patches.dpdk.org/series/14233/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/84936/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/84936/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dts-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 5E8F5A04DB;\n\tThu, 10 Dec 2020 12:24:10 +0100 (CET)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 4A99BBE75;\n\tThu, 10 Dec 2020 12:24:09 +0100 (CET)", "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n by dpdk.org (Postfix) with ESMTP id C253FBC8A\n for <dts@dpdk.org>; Thu, 10 Dec 2020 12:24:06 +0100 (CET)", "from fmsmga005.fm.intel.com ([10.253.24.32])\n by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 10 Dec 2020 03:24:04 -0800", "from unknown (HELO localhost.localdomain) ([10.240.183.80])\n by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 10 Dec 2020 03:24:03 -0800" ], "IronPort-SDR": [ "\n t6ZCrR5Rg7r/Wzo80zardu5AWbvUjbDe40V0Ri0EPA3LCYtLXGNppe2agaffi5b4CYGp3fHbpi\n kNccSuUXdERQ==", "\n 21+Z+XJmMdXfpDQP34EtTTEDFKKqFdxsuP5aKNN/JhQkIgV138MMbBS4aYfnDqmQUWfopC8bRQ\n ZqgLKXxZrUFQ==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9830\"; a=\"170731286\"", "E=Sophos;i=\"5.78,408,1599548400\"; d=\"scan'208\";a=\"170731286\"", "E=Sophos;i=\"5.78,408,1599548400\"; d=\"scan'208\";a=\"542805058\"" ], "From": "Zhou Jun <junx.w.zhou@intel.com>", "To": "dts@dpdk.org", "Cc": "Zhou Jun <junx.w.zhou@intel.com>", "Date": "Thu, 10 Dec 2020 19:26:55 +0800", "Message-Id": "<20201210112655.22020-1-junx.w.zhou@intel.com>", "X-Mailer": "git-send-email 2.17.1", "Subject": "[dts] [PATCH V1] tests/TestSuite_dynamic_config:Modify the hard\n\tcoded appparameter", "X-BeenThere": "dts@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "test suite reviews and discussions <dts.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dts>,\n <mailto:dts-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dts/>", "List-Post": "<mailto:dts@dpdk.org>", "List-Help": "<mailto:dts-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dts>,\n <mailto:dts-request@dpdk.org?subject=subscribe>", "Errors-To": "dts-bounces@dpdk.org", "Sender": "\"dts\" <dts-bounces@dpdk.org>" }, "content": "Modify the hard coded app parameter to call the platform interface\n\nSigned-off-by: Zhou Jun <junx.w.zhou@intel.com>\n---\n tests/TestSuite_dynamic_config.py | 17 ++++++-----------\n 1 file changed, 6 insertions(+), 11 deletions(-)", "diff": "diff --git a/tests/TestSuite_dynamic_config.py b/tests/TestSuite_dynamic_config.py\nindex a9c482e5..92f15d36 100644\n--- a/tests/TestSuite_dynamic_config.py\n+++ b/tests/TestSuite_dynamic_config.py\n@@ -72,16 +72,12 @@ class TestDynamicConfig(TestCase):\n self.verify(len(self.dut_ports) >= 2, \"Insufficient ports\")\n \n # Prepare cores and ports\n- cores = self.dut.get_core_list('1S/2C/2T')\n- self.coreMask = utils.create_mask(cores)\n self.portMask = utils.create_mask(self.dut_ports[:2])\n self.path=self.dut.apps_name['test-pmd']\n # launch app\n- cmd = \"%s -c %s -n 3 -- -i --rxpt=0 \\\n- --rxht=0 --rxwt=0 --txpt=39 --txht=0 --txwt=0 --portmask=%s\" % (self.path, self.coreMask, self.portMask)\n-\n- self.dut.send_expect(\"%s\" % cmd, \"testpmd> \", 120)\n-\n+ self.eal_para = self.dut.create_eal_parameters(cores=\"1S/2C/2T\")\n+ self.dut.send_expect(r'%s %s -- -i --rxpt=0 --rxht=0 --rxwt=0 --txpt=39 --txht=0 --txwt=0 --portmask=%s'\n+ % (self.path, self.eal_para, self.portMask), \"testpmd>\", 120)\n # get dest address from self.target port\n out = self.dut.send_expect(\n \"show port info %d\" % self.dut_ports[0], \"testpmd> \")\n@@ -118,10 +114,9 @@ class TestDynamicConfig(TestCase):\n \"\"\"\n Run before each test case.\n \"\"\"\n- cmd = \"%s -n 3 -- -i --rxpt=0 \\\n- --rxht=0 --rxwt=0 --txpt=39 --txht=0 --txwt=0 --portmask=%s\" % (self.path, self.portMask)\n-\n- self.dut.send_expect(\"%s\" % cmd, \"testpmd> \", 120)\n+ self.eal_para = self.dut.create_eal_parameters('1S/2C/2T')\n+ self.dut.send_expect(r'%s %s -- -i --rxpt=0 --rxht=0 --rxwt=0 --txpt=39 --txht=0 --txwt=0 --portmask=%s'\n+ % (self.path, self.eal_para, self.portMask), \"testpmd>\", 120)\n time.sleep(5)\n self.dut.send_expect(\"start\", \"testpmd> \", 120)\n \n", "prefixes": [ "V1" ] }{ "id": 84936, "url": "