From: David Gibson <david@gibson.dropbear.id.au>
To: Yumei Huang <yuhuang@redhat.com>
Cc: passt-dev@passt.top, sbrivio@redhat.com
Subject: Re: [PATCH] test: Fix the escaping issue in memory/passt test
Date: Thu, 16 Oct 2025 12:05:08 +1100 [thread overview]
Message-ID: <aPBExPgha3mj2fL3@zatzit> (raw)
In-Reply-To: <20251015080402.18822-1-yuhuang@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1806 bytes --]
On Wed, Oct 15, 2025 at 04:04:02PM +0800, Yumei Huang wrote:
> Test memory/passt failed with error "objsize: No such file or
> directory" because of an escaping issue. Fix it.
It would be useful for the commit message to spell out in more detail
what exactly is going wrong. How is the missing escape resulting in
the error we see.
What is the extra escape for, specifically? '\1' is what we want to
give to sed, the '' should escape it for the shell. I'm assuming
something else in the test scripts is removing one of these escapes,
but it's not obvious to me what exactly.
>
> Link: https://bugs.passt.top/show_bug.cgi?id=155
> Signed-off-by: Yumei Huang <yuhuang@redhat.com>
> ---
> test/memory/passt | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/test/memory/passt b/test/memory/passt
> index 7e45724..c5142ea 100644
> --- a/test/memory/passt
> +++ b/test/memory/passt
> @@ -51,7 +51,7 @@ guest sed /proc/slabinfo -ne 's/^\([^ ]* *[^ ]* *[^ ]* *[^ ]*\).*/\\\1/p' > /tmp
> guest kill \$(cat /tmp/pid)
> guest diff -y --suppress-common-lines /tmp/meminfo.before /tmp/meminfo.after || :
> guest nm -td -Sr --size-sort -P /bin/passt.avx2 | head -30 | tee /tmp/nm.size
> -guest sed /proc/slabinfo -ne 's/\(.*<objsize>\).*$/\1/p' | tail -1; (diff -y --suppress-common-lines /tmp/slabinfo.before /tmp/slabinfo.after | sort -grk8)
> +guest sed /proc/slabinfo -ne 's/\(.*<objsize>\).*$/\\\1/p' | tail -1; (diff -y --suppress-common-lines /tmp/slabinfo.before /tmp/slabinfo.after | sort -grk8)
> endef
>
> def summary
> --
> 2.47.0
>
--
David Gibson (he or they) | I'll have my music baroque, and my code
david AT gibson.dropbear.id.au | minimalist, thank you, not the other way
| around.
http://www.ozlabs.org/~dgibson
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
next prev parent reply other threads:[~2025-10-16 1:05 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-10-15 8:04 Yumei Huang
2025-10-16 1:05 ` David Gibson [this message]
2025-10-21 21:51 ` Stefano Brivio
2025-10-22 3:37 ` Yumei Huang
2025-10-28 0:09 ` Stefano Brivio
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=aPBExPgha3mj2fL3@zatzit \
--to=david@gibson.dropbear.id.au \
--cc=passt-dev@passt.top \
--cc=sbrivio@redhat.com \
--cc=yuhuang@redhat.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.
Code repositories for project(s) associated with this public inbox
https://passt.top/passt
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 IMAP folder(s).