test suite reviews and discussions
 help / color / mirror / Atom feed
From: Patrick Robb <probb@iol.unh.edu>
To: Manit Mahajan <mmahajan@iol.unh.edu>
Cc: dts@dpdk.org, dmarchan@redhat.com
Subject: Re: [PATCH] tests/compress_common: replace coremask with corelist in compress_common
Date: Fri, 11 Jul 2025 17:30:33 -0400	[thread overview]
Message-ID: <CAJvnSUA0zLhrWuFeTM+5X6xEs4oDCibDq+CUyshQcCVxRsR2rg@mail.gmail.com> (raw)
In-Reply-To: <20250711203030.10147-1-mmahajan@iol.unh.edu>

[-- Attachment #1: Type: text/plain, Size: 1709 bytes --]

This seems fine in principle.

Did you ever figure out why the compressdev_autotest was failing with
coremask used in the first place? I haven't looked at the coremask
deprecation patch that you had found, but David said on slack that it
didn't remove the option to use the coremask EAL arg, it just discourages
it with a warning.

On Fri, Jul 11, 2025 at 4:32 PM Manit Mahajan <mmahajan@iol.unh.edu> wrote:

> The compress_common.py script previously used the --coremask parameter,
> which has been removed from DPDK. As a result, zlib_pmd test cases
> fail when invoking this script. This patch updates the script to
> use the --corelist parameter instead, which is the more common
> way to specify core assignment in DPDK.
>
> Signed-off-by: Manit Mahajan <mmahajan@iol.unh.edu>
> ---
>  tests/compress_common.py | 8 +++++---
>  1 file changed, 5 insertions(+), 3 deletions(-)
>
> diff --git a/tests/compress_common.py b/tests/compress_common.py
> index aa591270..22ce4b74 100644
> --- a/tests/compress_common.py
> +++ b/tests/compress_common.py
> @@ -94,12 +94,14 @@ def get_input_file(test_case):
>
>  def run_unit(test_case, eal={}):
>      cores = test_case.dut.get_core_list("1S/3C/1T")
> -    core_mask = utils.create_mask(cores)
> +    core_list = []
> +    for core in cores:
> +        core_list.append(str(core))
> +    core_str = ",".join(core_list)
>      mem_channels = test_case.dut.get_memory_channels()
>
>      default = default_eals.copy()
> -    default["l"] = None
> -    default["c"] = core_mask
> +    default["l"] = core_str
>      default["n"] = mem_channels
>
>      eal_str = get_opt_str(test_case, default, eal)
> --
> 2.41.0
>
>

[-- Attachment #2: Type: text/html, Size: 2273 bytes --]

           reply	other threads:[~2025-07-11 21:36 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20250711203030.10147-1-mmahajan@iol.unh.edu>]

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=CAJvnSUA0zLhrWuFeTM+5X6xEs4oDCibDq+CUyshQcCVxRsR2rg@mail.gmail.com \
    --to=probb@iol.unh.edu \
    --cc=dmarchan@redhat.com \
    --cc=dts@dpdk.org \
    --cc=mmahajan@iol.unh.edu \
    /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).