Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/78976/?format=api
http://patches.dpdk.org/api/patches/78976/?format=api", "web_url": "http://patches.dpdk.org/project/dts/patch/20200928071329.8897-1-linglix.chen@intel.com/", "project": { "id": 3, "url": "http://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": "<20200928071329.8897-1-linglix.chen@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dts/20200928071329.8897-1-linglix.chen@intel.com", "date": "2020-09-28T07:13:29", "name": "[V1] tests/TestSuite_shutdown_api:fixed differences brought about by speed units", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": false, "hash": "be78700a027e8a9cda876e279b27ea5d892b02c1", "submitter": { "id": 1843, "url": "http://patches.dpdk.org/api/people/1843/?format=api", "name": "Lingli Chen", "email": "linglix.chen@intel.com" }, "delegate": null, "mbox": "http://patches.dpdk.org/project/dts/patch/20200928071329.8897-1-linglix.chen@intel.com/mbox/", "series": [ { "id": 12544, "url": "http://patches.dpdk.org/api/series/12544/?format=api", "web_url": "http://patches.dpdk.org/project/dts/list/?series=12544", "date": "2020-09-28T07:13:29", "name": "[V1] tests/TestSuite_shutdown_api:fixed differences brought about by speed units", "version": 1, "mbox": "http://patches.dpdk.org/series/12544/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/78976/comments/", "check": "pending", "checks": "http://patches.dpdk.org/api/patches/78976/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 9CE9EA04C0;\n\tMon, 28 Sep 2020 09:14:19 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 665551D544;\n\tMon, 28 Sep 2020 09:14:18 +0200 (CEST)", "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n by dpdk.org (Postfix) with ESMTP id BE7911C1A6\n for <dts@dpdk.org>; Mon, 28 Sep 2020 09:14:16 +0200 (CEST)", "from orsmga002.jf.intel.com ([10.7.209.21])\n by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 28 Sep 2020 00:14:13 -0700", "from unknown (HELO localhost.localdomain) ([10.240.183.80])\n by orsmga002.jf.intel.com with ESMTP; 28 Sep 2020 00:14:12 -0700" ], "IronPort-SDR": [ "\n ZtemGv7t4HJOxyPlmlSBvwWrkCQ96aGsQxWJfw5ZnGQxNLs4A3Eqv5/TTttrEs+fTjX71Kf7Yp\n DarFC4mA8a5g==", "\n TW0EYkxDwBVQstfwZosn7miIsecrF9kDaiVmQrl9IClp+Wz66A7rNxF5W1VBDg2cqbYxXChtZl\n gTs6H0cBHpTA==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9757\"; a=\"180105675\"", "E=Sophos;i=\"5.77,313,1596524400\"; d=\"scan'208\";a=\"180105675\"", "E=Sophos;i=\"5.77,313,1596524400\"; d=\"scan'208\";a=\"324196278\"" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "From": "Chen Linglix <linglix.chen@intel.com>", "To": "dts@dpdk.org", "Cc": "chenlinglix <linglix.chen@intel.com>", "Date": "Mon, 28 Sep 2020 15:13:29 +0800", "Message-Id": "<20200928071329.8897-1-linglix.chen@intel.com>", "X-Mailer": "git-send-email 2.17.1", "Subject": "[dts] [PATCH V1] tests/TestSuite_shutdown_api:fixed differences\n\tbrought about by speed units", "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": "From: chenlinglix <linglix.chen@intel.com>\n\nfixed differences brought about by speed units\n\nSigned-off-by: chenlinglix <linglix.chen@intel.com>\n---\n tests/TestSuite_shutdown_api.py | 20 +++++++++++++-------\n 1 file changed, 13 insertions(+), 7 deletions(-)", "diff": "diff --git a/tests/TestSuite_shutdown_api.py b/tests/TestSuite_shutdown_api.py\nindex edd1dcf..5255639 100644\n--- a/tests/TestSuite_shutdown_api.py\n+++ b/tests/TestSuite_shutdown_api.py\n@@ -515,8 +515,13 @@ class TestShutdownApi(TestCase):\n out = self.dut.send_expect(\"show port info %s\" % port, \"testpmd>\")\n self.verify(\"Link status: up\" in out,\n \"Wrong link status reported by the dut\")\n- self.verify(\"Link speed: %s Mbps\" % config[0] in out,\n- \"Wrong speed reported by the dut\")\n+ if config[0] in['1000', '10000']:\n+ num =int(int(config[0])/1000)\n+ self.verify(\"Link speed: %d Gbps\" % num in out,\n+ \"Wrong speed reported by the dut\")\n+ else:\n+ self.verify(\"Link speed: %s Mbps\" % config[0] in out,\n+ \"Wrong speed reported by the dut\")\n self.verify(\"Link duplex: %s-duplex\" % config[1].lower() in out,\n \"Wrong link type reported by the dut\")\n out = self.tester.send_expect(\n@@ -547,7 +552,7 @@ class TestShutdownApi(TestCase):\n if not self.check_linkspeed_config(configs):\n return\n \n- result_linkspeed_scanner = r\"Link\\s*speed:\\s([0-9]+)\\s*Mbps\"\n+ result_linkspeed_scanner = r\"Link\\s*speed:\\s([0-9]+)\\s*(\\S+)\"\n linkspeed_scanner = re.compile(result_linkspeed_scanner, re.DOTALL)\n result_linktype_scanner = r\"Link\\s*duplex:\\s*(\\S*)\\s*-\\s*duplex\"\n linktype_scanner = re.compile(result_linktype_scanner, re.DOTALL)\n@@ -576,11 +581,12 @@ class TestShutdownApi(TestCase):\n time.sleep(1)\n \n out = self.vm0_testpmd.execute_cmd('show port info all')\n-\n- linkspeed = linkspeed_scanner.findall(out)\n+ linkspeed = linkspeed_scanner.findall(out)[0]\n linktype = linktype_scanner.findall(out)\n-\n- self.verify(config[0] in linkspeed,\n+ actual_speed = int(linkspeed[0])\n+ if linkspeed[1] == \"Gbps\":\n+ actual_speed = actual_speed * 1000\n+ self.verify(config[0] == str(actual_speed),\n \"Wrong VF speed reported by the self.tester.\")\n self.verify(config[1].lower() == linktype[0].lower(),\n \"Wrong VF link type reported by the self.tester.\")\n", "prefixes": [ "V1" ] }{ "id": 78976, "url": "