Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/108242/?format=api
https://patches.dpdk.org/api/patches/108242/?format=api", "web_url": "https://patches.dpdk.org/project/dts/patch/20220224154221.1516892-3-yux.jiang@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": "<20220224154221.1516892-3-yux.jiang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dts/20220224154221.1516892-3-yux.jiang@intel.com", "date": "2022-02-24T15:42:21", "name": "[V1,2/2] tests/short_live: wait for interface up", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "929929cce927c0dde5dd6eb8a34a816c0b7b4b4d", "submitter": { "id": 1709, "url": "https://patches.dpdk.org/api/people/1709/?format=api", "name": "Yu Jiang", "email": "yux.jiang@intel.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dts/patch/20220224154221.1516892-3-yux.jiang@intel.com/mbox/", "series": [ { "id": 21848, "url": "https://patches.dpdk.org/api/series/21848/?format=api", "web_url": "https://patches.dpdk.org/project/dts/list/?series=21848", "date": "2022-02-24T15:42:19", "name": "optimize script: wait for interface up", "version": 1, "mbox": "https://patches.dpdk.org/series/21848/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/108242/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/108242/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 mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id B92BCA0353;\n\tThu, 24 Feb 2022 08:42:54 +0100 (CET)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id B48D94116A;\n\tThu, 24 Feb 2022 08:42:54 +0100 (CET)", "from mga17.intel.com (mga17.intel.com [192.55.52.151])\n by mails.dpdk.org (Postfix) with ESMTP id 0D9374117D\n for <dts@dpdk.org>; Thu, 24 Feb 2022 08:42:52 +0100 (CET)", "from orsmga004.jf.intel.com ([10.7.209.38])\n by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 23 Feb 2022 23:42:52 -0800", "from unknown (HELO localhost.localdomain) ([10.239.251.226])\n by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 23 Feb 2022 23:42:50 -0800" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1645688573; x=1677224573;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=VJiGB6hQgLBMOkHQRM6jWuXhx09RWTNAmfiBx4IxMhw=;\n b=hW4gc/axIwEBB5pP9BQCaP/5Y2Nb+P+Ykm8tMb1UEQtjg0pFupaarsPm\n /9zTfCxYMc4k1aLnXuovlY18QwMJEJq+c1c/mpR0jfZ8ViqriBEaIhTnU\n Z4lqW09UT9xPWLf0Jt7Bvgk3PBiAmC/9tiY520HU5xpEqOCId50X2QWxV\n SRUIt7rkoR0P3BoSSScjRJJD80Naazz63uSsViaho5hNmBrCkEW2BsZg7\n 40Ym/MR6wGdu7yDl7nIOXwOlyy3xOTGCnrNnqoHAZke+WF8EasIxt8V45\n oziPvXPVahL+WYd9bTxrQc7n/Ax9S1fVBSd0E3CCuHEMfpC7D26Eq9fPL Q==;", "X-IronPort-AV": [ "E=McAfee;i=\"6200,9189,10267\"; a=\"232793359\"", "E=Sophos;i=\"5.88,393,1635231600\"; d=\"scan'208\";a=\"232793359\"", "E=Sophos;i=\"5.88,393,1635231600\"; d=\"scan'208\";a=\"639626973\"" ], "From": "Yu Jiang <yux.jiang@intel.com>", "To": "lijuan.tu@intel.com,\n\tdts@dpdk.org", "Cc": "Yu Jiang <yux.jiang@intel.com>", "Subject": "[dts][PATCH V1 2/2] tests/short_live: wait for interface up", "Date": "Thu, 24 Feb 2022 15:42:21 +0000", "Message-Id": "<20220224154221.1516892-3-yux.jiang@intel.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20220224154221.1516892-1-yux.jiang@intel.com>", "References": "<20220224154221.1516892-1-yux.jiang@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-BeenThere": "dts@dpdk.org", "X-Mailman-Version": "2.1.29", "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" }, "content": "optimize script short_live:\n1, use new method: is_interface_up to ensure iface's link status.\n2, when launch example frequently, need wait for more than 0.5s to\nrestart example after kill example abnormally.\n\nSigned-off-by: Yu Jiang <yux.jiang@intel.com>\n---\n tests/TestSuite_short_live.py | 6 ++++--\n 1 file changed, 4 insertions(+), 2 deletions(-)", "diff": "diff --git a/tests/TestSuite_short_live.py b/tests/TestSuite_short_live.py\nindex 1b8fbb94..556728b9 100644\n--- a/tests/TestSuite_short_live.py\n+++ b/tests/TestSuite_short_live.py\n@@ -106,7 +106,8 @@ class TestShortLiveApp(TestCase):\n # rx and tx packet are list\n if (txPort == rxPort):\n count = 2\n-\n+ # ensure tester's link up\n+ self.verify(self.tester.is_interface_up(intf=rxitf), \"Wrong link status, should be up\")\n filter_list = [{'layer': 'ether', 'config': {'type': 'not IPv6'}}, {'layer': 'userdefined', 'config': {'pcap-filter': 'not udp'}}]\n inst = self.tester.tcpdump_sniff_packets(rxitf, count=count,filters=filter_list)\n \n@@ -135,6 +136,8 @@ class TestShortLiveApp(TestCase):\n time.sleep(1)\n delay = delay + 1\n else:\n+ # need wait for 1s to restart example after kill example abnormally.\n+ time.sleep(1)\n break\n self.verify(delay < delay_max, \"Failed to kill the process within %s seconds\" % delay_max)\n \n@@ -144,7 +147,6 @@ class TestShortLiveApp(TestCase):\n \"\"\"\n #dpdk start\n self.dut.send_expect(\"./%s %s -- -i --portmask=0x3\" % (self.app_testpmd, self.eal_para()), \"testpmd>\", 120)\n- time.sleep(5)\n self.dut.send_expect(\"set fwd mac\", \"testpmd>\")\n self.dut.send_expect(\"set promisc all off\", \"testpmd>\")\n self.dut.send_expect(\"start\", \"testpmd>\")\n", "prefixes": [ "V1", "2/2" ] }{ "id": 108242, "url": "