Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/78177/?format=api
https://patches.dpdk.org/api/patches/78177/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20200921120357.220588-6-kevin.laatz@intel.com/", "project": { "id": 1, "url": "https://patches.dpdk.org/api/projects/1/?format=api", "name": "DPDK", "link_name": "dpdk", "list_id": "dev.dpdk.org", "list_email": "dev@dpdk.org", "web_url": "http://core.dpdk.org", "scm_url": "git://dpdk.org/dpdk", "webscm_url": "http://git.dpdk.org/dpdk", "list_archive_url": "https://inbox.dpdk.org/dev", "list_archive_url_format": "https://inbox.dpdk.org/dev/{}", "commit_url_format": "" }, "msgid": "<20200921120357.220588-6-kevin.laatz@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20200921120357.220588-6-kevin.laatz@intel.com", "date": "2020-09-21T12:03:52", "name": "[v7,05/10] app/test-cmdline: support python3 only", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "b7c4c27ee87cd599aa8e4552c553afffdcff8a41", "submitter": { "id": 921, "url": "https://patches.dpdk.org/api/people/921/?format=api", "name": "Kevin Laatz", "email": "kevin.laatz@intel.com" }, "delegate": { "id": 24651, "url": "https://patches.dpdk.org/api/users/24651/?format=api", "username": "dmarchand", "first_name": "David", "last_name": "Marchand", "email": "david.marchand@redhat.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20200921120357.220588-6-kevin.laatz@intel.com/mbox/", "series": [ { "id": 12378, "url": "https://patches.dpdk.org/api/series/12378/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=12378", "date": "2020-09-21T12:03:48", "name": "adding support for python 3 only", "version": 7, "mbox": "https://patches.dpdk.org/series/12378/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/78177/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/78177/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-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 1175AA04CC;\n\tMon, 21 Sep 2020 14:08:54 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 6AC651DA4E;\n\tMon, 21 Sep 2020 14:08:19 +0200 (CEST)", "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n by dpdk.org (Postfix) with ESMTP id 548BC1D9AA\n for <dev@dpdk.org>; Mon, 21 Sep 2020 14:08:12 +0200 (CEST)", "from fmsmga007.fm.intel.com ([10.253.24.52])\n by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 21 Sep 2020 05:08:11 -0700", "from silpixa00399838.ir.intel.com ([10.237.213.224])\n by fmsmga007.fm.intel.com with ESMTP; 21 Sep 2020 05:08:09 -0700" ], "IronPort-SDR": [ "\n 0y4Nvln2x+Tzdb4RysdMBhGPFLXSP5Vcp4cGEz2JJ1NBaYVt9Fxhevwd+HWrx+491mjV44VUIu\n 8LFggRApfAuQ==", "\n yf3OwTA/5JgtqIS3vhbwF9UpHog1gCx/DxIUXsGCqAQLoKqzpgnOkInrNx9ri2ajNJWv3E2Vhy\n QXrQnAUJgxgw==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9750\"; a=\"157742892\"", "E=Sophos;i=\"5.77,286,1596524400\"; d=\"scan'208\";a=\"157742892\"", "E=Sophos;i=\"5.77,286,1596524400\"; d=\"scan'208\";a=\"289925420\"" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "From": "Kevin Laatz <kevin.laatz@intel.com>", "To": "dev@dpdk.org", "Cc": "bruce.richardson@intel.com, anatoly.burakov@intel.com,\n robin.jarry@6wind.com, david.marchand@redhat.com,\n Kevin Laatz <kevin.laatz@intel.com>, Olivier Matz <olivier.matz@6wind.com>,\n Louise Kilheeney <louise.kilheeney@intel.com>", "Date": "Mon, 21 Sep 2020 13:03:52 +0100", "Message-Id": "<20200921120357.220588-6-kevin.laatz@intel.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20200921120357.220588-1-kevin.laatz@intel.com>", "References": "<20200921114634.220328-1-kevin.laatz@intel.com>\n <20200921120357.220588-1-kevin.laatz@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH v7 05/10] app/test-cmdline: support python3 only", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Changed script to explicitly use python3 only to avoid\nmaintaining python 2 and removed deprecation notice.\n\nCc: Olivier Matz <olivier.matz@6wind.com>\n\nSigned-off-by: Louise Kilheeney <louise.kilheeney@intel.com>\nSigned-off-by: Kevin Laatz <kevin.laatz@intel.com>\nReviewed-by: Bruce Richardson <bruce.richardson@intel.com>\n\n---\nv5:\n - fixed python3 issue causing script to fail. Divisions without the\n typecast lead to a floating point result, which was messing up the\n loop.\n\nv6:\n - Removed changes to mk/rte.sdktest.mk since it no longer exists.\n---\n app/test-cmdline/cmdline_test.py | 9 ++-------\n app/test-cmdline/cmdline_test_data.py | 1 +\n 2 files changed, 3 insertions(+), 7 deletions(-)", "diff": "diff --git a/app/test-cmdline/cmdline_test.py b/app/test-cmdline/cmdline_test.py\nindex 954428e2bf..074fed7e7f 100755\n--- a/app/test-cmdline/cmdline_test.py\n+++ b/app/test-cmdline/cmdline_test.py\n@@ -1,9 +1,8 @@\n-#!/usr/bin/env python\n+#!/usr/bin/env python3\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright(c) 2010-2014 Intel Corporation\n \n # Script that runs cmdline_test app and feeds keystrokes into it.\n-from __future__ import print_function\n import cmdline_test_data\n import os\n import pexpect\n@@ -19,10 +18,6 @@ def runTest(child, test):\n return 0\n child.expect(test[\"Result\"], 1)\n \n-if sys.version_info.major < 3:\n- print(\"WARNING: Python 2 is deprecated for use in DPDK, and will not work in future releases.\", file=sys.stderr)\n- print(\"Please use Python 3 instead\", file=sys.stderr)\n-\n #\n # history test is a special case\n #\n@@ -43,7 +38,7 @@ def runHistoryTest(child):\n i = 0\n \n # fill the history with numbers\n- while i < history_size / 10:\n+ while i < int(history_size / 10):\n # add 1 to prevent from parsing as octals\n child.send(\"1\" + str(i).zfill(8) + cmdline_test_data.ENTER)\n # the app will simply print out the number\ndiff --git a/app/test-cmdline/cmdline_test_data.py b/app/test-cmdline/cmdline_test_data.py\nindex 114d2cb6a0..2d9b3262a6 100644\n--- a/app/test-cmdline/cmdline_test_data.py\n+++ b/app/test-cmdline/cmdline_test_data.py\n@@ -1,3 +1,4 @@\n+#!/usr/bin/env python3\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright(c) 2010-2014 Intel Corporation\n \n", "prefixes": [ "v7", "05/10" ] }{ "id": 78177, "url": "