test suite reviews and discussions
 help / color / mirror / Atom feed
From: "Liu, Yong" <yong.liu@intel.com>
To: "Xu, GangX" <gangx.xu@intel.com>, "dts@dpdk.org" <dts@dpdk.org>
Cc: "Xu, GangX" <gangx.xu@intel.com>
Subject: Re: [dts] [patch v1] fix coremask issue
Date: Wed, 24 Jan 2018 09:16:07 +0000	[thread overview]
Message-ID: <86228AFD5BCD8E4EBFD2B90117B5E81E62F59692@SHSMSX103.ccr.corp.intel.com> (raw)
In-Reply-To: <1516784889-26590-1-git-send-email-gangx.xu@intel.com>

Gang,
In this suite, I do not think CONFIG_RTE_LOG_DP_LEVEL is needed. 
Please check whether it still can work without datapath log level modification.

Thanks,
Marvin

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of xu,gang
> Sent: Wednesday, January 24, 2018 5:08 PM
> To: dts@dpdk.org
> Cc: Xu, GangX <gangx.xu@intel.com>
> Subject: [dts] [patch v1] fix coremask issue
> 
> remove CONFIG_RTE_LOG_LEVEL, use CONFIG_RTE_LOG_DP_LEVEL=RTE_LOG_DEBUG
> modify log-level="lib.eal,8" mean open eal library debug log.
> 
> Signed-off-by: xu,gang <gangx.xu@intel.com>
> ---
>  tests/TestSuite_coremask.py | 15 ++++++---------
>  1 file changed, 6 insertions(+), 9 deletions(-)
> 
> diff --git a/tests/TestSuite_coremask.py b/tests/TestSuite_coremask.py
> index a28266a..d3773cb 100644
> --- a/tests/TestSuite_coremask.py
> +++ b/tests/TestSuite_coremask.py
> @@ -17,7 +17,7 @@ from test_case import TestCase
>  # Test class.
>  #
> 
> -command_line = """./%s/app/test -c %s -n %d --log-level 8"""
> +command_line = """./%s/app/test -c %s -n %d --log-level="lib.eal,8" """
> 
> 
>  class TestCoremask(TestCase):
> @@ -39,8 +39,8 @@ class TestCoremask(TestCase):
>          self.mem_channel = self.dut.get_memory_channels()
> 
>          self.all_cores = self.dut.get_core_list("all")
> -        self.dut.send_expect("sed -i -e 's/CONFIG_RTE_LOG_LEVEL=.*$/"
> -                          + "CONFIG_RTE_LOG_LEVEL=RTE_LOG_DEBUG/'
> config/common_base", "# ", 30)
> +        self.dut.send_expect("sed -i -e 's/CONFIG_RTE_LOG_DP_LEVEL=.*$/"
> +                          + "CONFIG_RTE_LOG_DP_LEVEL=RTE_LOG_DEBUG/'
> config/common_base", "# ", 30)
> 
>          self.dut.skip_setup = False
>          self.dut.build_install_dpdk(self.target)
> @@ -64,7 +64,6 @@ class TestCoremask(TestCase):
>                                        self.mem_channel)
> 
>              out = self.dut.send_expect(command, "RTE>>", 10)
> -
>              self.verify("EAL: Detected lcore %s as core" % core in out,
>                          "Core %s not detected" % core)
> 
> @@ -83,7 +82,6 @@ class TestCoremask(TestCase):
>          command = command_line % (self.target, core_mask,
> self.mem_channel)
> 
>          out = self.dut.send_expect(command, "RTE>>", 10)
> -
>          self.verify("EAL: Master lcore 1 is ready" in out,
>                      "Core 1 not ready")
> 
> @@ -104,7 +102,7 @@ class TestCoremask(TestCase):
>          Check coremask parsing for more cores than available.
>          """
> 
> -        command_line = """./%s/app/test -c %s -n %d --log-level 8 2>&1
> |tee out"""
> +        command_line = """./%s/app/test -c %s -n %d --log-
> level="lib.eal,8" 2>&1 |tee out"""
> 
>          # Default big coremask value 128
>          big_coremask_size = 128
> @@ -131,7 +129,6 @@ class TestCoremask(TestCase):
>              self.dut.send_expect(command, "RTE>>", 10)
>          except:
>              out = self.dut.send_expect("cat out", "# ")
> -
>              self.verify("EAL: invalid coremask" in out,
>                      "Small core mask set")
> 
> @@ -178,8 +175,8 @@ class TestCoremask(TestCase):
>          """
>          Run after each test suite.
>          """
> -        self.dut.send_expect("sed -i -e 's/CONFIG_RTE_LOG_LEVEL=.*$/"
> -                          + "CONFIG_RTE_LOG_LEVEL=RTE_LOG_INFO/'
> config/common_base", "# ", 30)
> +        self.dut.send_expect("sed -i -e 's/CONFIG_RTE_LOG_DP_LEVEL=.*$/"
> +                          + "CONFIG_RTE_LOG_DP_LEVEL=RTE_LOG_INFO/'
> config/common_base", "# ", 30)
> 
>          #self.dut.skip_setup = False
>          self.dut.build_install_dpdk(self.target)
> --
> 1.9.3

      reply	other threads:[~2018-01-24  9:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-24  9:08 xu,gang
2018-01-24  9:16 ` Liu, Yong [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=86228AFD5BCD8E4EBFD2B90117B5E81E62F59692@SHSMSX103.ccr.corp.intel.com \
    --to=yong.liu@intel.com \
    --cc=dts@dpdk.org \
    --cc=gangx.xu@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).