Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/75954/?format=api
https://patches.dpdk.org/api/patches/75954/?format=api", "web_url": "https://patches.dpdk.org/project/dts/patch/20200826015319.106866-1-qimaix.xiao@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": "<20200826015319.106866-1-qimaix.xiao@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dts/20200826015319.106866-1-qimaix.xiao@intel.com", "date": "2020-08-26T01:53:19", "name": "[V1] framework/ssh_connection: fix output might be int", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "cdf0f7442248b0712f163f652bcbf698886b7915", "submitter": { "id": 1303, "url": "https://patches.dpdk.org/api/people/1303/?format=api", "name": "Xiao, QimaiX", "email": "qimaix.xiao@intel.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dts/patch/20200826015319.106866-1-qimaix.xiao@intel.com/mbox/", "series": [ { "id": 11788, "url": "https://patches.dpdk.org/api/series/11788/?format=api", "web_url": "https://patches.dpdk.org/project/dts/list/?series=11788", "date": "2020-08-26T01:53:19", "name": "[V1] framework/ssh_connection: fix output might be int", "version": 1, "mbox": "https://patches.dpdk.org/series/11788/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/75954/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/75954/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 836DEA04B1;\n\tWed, 26 Aug 2020 04:04:48 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 419BBAAB7;\n\tWed, 26 Aug 2020 04:04:48 +0200 (CEST)", "from mga07.intel.com (mga07.intel.com [134.134.136.100])\n by dpdk.org (Postfix) with ESMTP id 80A58255\n for <dts@dpdk.org>; Wed, 26 Aug 2020 04:04:46 +0200 (CEST)", "from orsmga002.jf.intel.com ([10.7.209.21])\n by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 25 Aug 2020 19:04:45 -0700", "from unknown (HELO localhost.localdomain) ([10.240.183.52])\n by orsmga002.jf.intel.com with ESMTP; 25 Aug 2020 19:04:43 -0700" ], "IronPort-SDR": [ "\n Ls2Yip0pOyKqqTUU0DEYcvCxOvp1oJgY+61bnBsf1qMsr86KlM4/mWdJ4MFA0gOWz0MLynyMEP\n SSbMeQOnusAQ==", "\n kdo9v4MpVkhOKStrcZKiDnCzQl8IMOkYljGwLciQSzg5JrIzK5fNaHJGGHr6K8fcAbd/Wq0kYQ\n ORHwU8jUx3TQ==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9724\"; a=\"220484520\"", "E=Sophos;i=\"5.76,354,1592895600\"; d=\"scan'208\";a=\"220484520\"", "E=Sophos;i=\"5.76,354,1592895600\"; d=\"scan'208\";a=\"312746923\"" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "From": "Xiao Qimai <qimaix.xiao@intel.com>", "To": "dts@dpdk.org", "Cc": "Xiao Qimai <qimaix.xiao@intel.com>", "Date": "Wed, 26 Aug 2020 01:53:19 +0000", "Message-Id": "<20200826015319.106866-1-qimaix.xiao@intel.com>", "X-Mailer": "git-send-email 2.25.1", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dts] [PATCH V1]framework/ssh_connection: fix output might be int", "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": "*. when verify is True in send_expect, the output might be type int.\n\nSigned-off-by: Xiao Qimai <qimaix.xiao@intel.com>\n---\n framework/ssh_connection.py | 3 ++-\n 1 file changed, 2 insertions(+), 1 deletion(-)", "diff": "diff --git a/framework/ssh_connection.py b/framework/ssh_connection.py\nindex e096a9e..c9886b2 100644\n--- a/framework/ssh_connection.py\n+++ b/framework/ssh_connection.py\n@@ -62,7 +62,8 @@ class SSHConnection(object):\n def send_expect(self, cmds, expected, timeout=15, verify=False):\n self.logger.info(cmds)\n out = self.session.send_expect(cmds, expected, timeout, verify)\n- self.logger.debug(out.replace(cmds, ''))\n+ if isinstance(out, str):\n+ self.logger.debug(out.replace(cmds, ''))\n if type(self.history) is list:\n self.history.append({\"command\": cmds, \"name\": self.name, \"output\": out})\n return out\n", "prefixes": [ "V1" ] }{ "id": 75954, "url": "