From: "Tu, Lijuan" <lijuan.tu@intel.com>
To: "Yao, BingX Y" <bingx.y.yao@intel.com>, "dts@dpdk.org" <dts@dpdk.org>
Cc: "Yao, BingX Y" <bingx.y.yao@intel.com>
Subject: Re: [dts] [PATCH V1] tests/unit_tests_power:change hard coding for core numbers
Date: Tue, 23 Oct 2018 07:39:44 +0000 [thread overview]
Message-ID: <8CE3E05A3F976642AAB0F4675D0AD20E0B996B67@SHSMSX101.ccr.corp.intel.com> (raw)
In-Reply-To: <1540277159-6265-1-git-send-email-bingx.y.yao@intel.com>
Please extend to all test cases in the suite.
> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of yaobing
> Sent: Tuesday, October 23, 2018 2:46 PM
> To: dts@dpdk.org
> Cc: Yao, BingX Y <bingx.y.yao@intel.com>
> Subject: [dts] [PATCH V1] tests/unit_tests_power:change hard coding for
> core numbers
>
> so give up hard coding at beginning of dts coding -- change hard coding for
> core numbers in test app startup options
>
> Signed-off-by: yaobing <bingx.y.yao@intel.com>
> ---
> tests/TestSuite_unit_tests_power.py | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/tests/TestSuite_unit_tests_power.py
> b/tests/TestSuite_unit_tests_power.py
> index 970e0a6..7405593 100644
> --- a/tests/TestSuite_unit_tests_power.py
> +++ b/tests/TestSuite_unit_tests_power.py
> @@ -36,6 +36,7 @@ This TestSuite runs the unit tests included in DPDK for
> power feature.
> """
>
> from test_case import TestCase
> +import utils
>
> #
> #
> @@ -62,14 +63,15 @@ class TestUnitTestsPower(TestCase):
> """
> Run before each test case.
> """
> - pass
> + cores = self.dut.get_core_list("all")
> + self.coremask = utils.create_mask(cores)
>
> def test_power(self):
> """
> Run power autotest.
> """
>
> - self.dut.send_expect("./%s/app/test -n 1 -c ffff" % self.target,
> "R.*T.*E.*>.*>", 60)
> + self.dut.send_expect("./%s/app/test -n 1 -c %s" %
> + (self.target,self.coremask), "R.*T.*E.*>.*>", 60)
> out = self.dut.send_expect("power_autotest", "RTE>>", 60)
> self.dut.send_expect("quit", "# ")
> self.verify("Test OK" in out, "Test failed")
> --
> 2.17.2
prev parent reply other threads:[~2018-10-23 7:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-10-23 6:45 yaobing
2018-10-23 7:39 ` Tu, Lijuan [this message]
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=8CE3E05A3F976642AAB0F4675D0AD20E0B996B67@SHSMSX101.ccr.corp.intel.com \
--to=lijuan.tu@intel.com \
--cc=bingx.y.yao@intel.com \
--cc=dts@dpdk.org \
/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).