From: "Han, YingyaX" <yingyax.han@intel.com>
To: "dts@dpdk.org" <dts@dpdk.org>, "Tu, Lijuan" <lijuan.tu@intel.com>
Subject: Re: [dts] [PATCH V1 2/2]tests/vmdq_dcb:Fix the error of setting parameters before compiling the application
Date: Wed, 11 Mar 2020 03:21:10 +0000 [thread overview]
Message-ID: <9AC1400278453341942179604C2BF1260C3A9E10@shsmsx102.ccr.corp.intel.com> (raw)
In-Reply-To: <1583831206-152754-1-git-send-email-yingyax.han@intel.com>
[-- Attachment #1: Type: text/plain, Size: 1669 bytes --]
Tested_by Han, YingyaX <yingyax.han@intel.com>
Best regards,
Yingya
-----Original Message-----
From: Han, YingyaX
Sent: Tuesday, March 10, 2020 5:07 PM
To: dts@dpdk.org; Tu, Lijuan <lijuan.tu@intel.com>
Cc: Han, YingyaX <yingyax.han@intel.com>
Subject: [dts][PATCH V1 2/2]tests/vmdq_dcb:Fix the error of setting parameters before compiling the application
Signed-off-by: hanyingya <yingyax.han@intel.com>
---
tests/TestSuite_vmdq_dcb.py | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/tests/TestSuite_vmdq_dcb.py b/tests/TestSuite_vmdq_dcb.py index 8641c7c..44abffc 100644
--- a/tests/TestSuite_vmdq_dcb.py
+++ b/tests/TestSuite_vmdq_dcb.py
@@ -93,9 +93,14 @@ class TestVmdqDcb(TestCase):
"""
Rebuild dpdk
"""
- self.dut.send_expect("sed -i -e 's/CONFIG_RTE_LIBRTE_I40E_QUEUE_NUM_PER_VM=?/"
- "CONFIG_RTE_LIBRTE_I40E_QUEUE_NUM_PER_VM=%s/' ./config/common_base" % nb_queue_per_vm, "#", 20)
- self.dut.build_install_dpdk(self.target)
+ out = self.dut.send_expect("grep 'CONFIG_RTE_LIBRTE_I40E_QUEUE_NUM_PER_VM' ./config/common_base", "#", 20)
+ vm_num = re.findall(r'\d+', out)[-1]
+ if str(nb_queue_per_vm) == vm_num:
+ return
+ else:
+ self.dut.send_expect("sed -i -e 's/CONFIG_RTE_LIBRTE_I40E_QUEUE_NUM_PER_VM=%s/CONFIG_RTE_LIBRTE_I40E_"
+ "QUEUE_NUM_PER_VM=%s/' ./config/common_base" % (vm_num, nb_queue_per_vm), "#", 20)
+ self.dut.build_install_dpdk(self.target)
def start_application(self, npools, ntcs):
"""
--
2.17.2
[-- Attachment #2: TestVmdqDcb.log --]
[-- Type: application/octet-stream, Size: 190144 bytes --]
next prev parent reply other threads:[~2020-03-11 3:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-10 9:06 hanyingya
2020-03-11 3:21 ` Han, YingyaX [this message]
2020-03-13 6:37 ` Tu, Lijuan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9AC1400278453341942179604C2BF1260C3A9E10@shsmsx102.ccr.corp.intel.com \
--to=yingyax.han@intel.com \
--cc=dts@dpdk.org \
--cc=lijuan.tu@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).