From: David Gibson <david@gibson.dropbear.id.au>
To: "Dwayne B. Bent" <dbb@dbb.dev>
Cc: passt-dev@passt.top
Subject: Re: [PATCH 1/2] pasta: Regression test for bug 216
Date: Wed, 22 Jul 2026 14:18:12 +1000 [thread overview]
Message-ID: <amBEav7OlrBl7Fuu@zatzit> (raw)
In-Reply-To: <20260721153727.2173831-2-dbb@dbb.dev>
[-- Attachment #1: Type: text/plain, Size: 2173 bytes --]
On Tue, Jul 21, 2026 at 11:37:26AM -0400, Dwayne B. Bent wrote:
> Adds a test that asserts that when pasta is invoked via `unshare -r` in
> standalone mode with `--netns-only` it does not print any warnings, and
> the command executes successfully.
>
> Assisted-by: Codex:gpt-5.6-sol
> Signed-off-by: Dwayne B. Bent <dbb@dbb.dev>
Content LGTM, however there's a detail in the packaging:
Although having the test before the fix is obviously the right order
while developing and testing it, for final merge we want the test
either after the fix, or folded into the same patch: that way we don't
risk breaking future bisects.
> ---
> test/pasta_options/netns_only | 19 +++++++++++++++++++
> test/run | 1 +
> 2 files changed, 20 insertions(+)
> create mode 100644 test/pasta_options/netns_only
>
> diff --git a/test/pasta_options/netns_only b/test/pasta_options/netns_only
> new file mode 100644
> index 0000000..197ed44
> --- /dev/null
> +++ b/test/pasta_options/netns_only
> @@ -0,0 +1,19 @@
> +# SPDX-License-Identifier: GPL-2.0-or-later
> +#
> +# PASST - Plug A Simple Socket Transport
> +# for qemu/UNIX domain socket mode
> +#
> +# PASTA - Pack A Subtle Tap Abstraction
> +# for network namespace/tap device mode
> +#
> +# test/pasta_options/netns_only - Check --netns-only handling
> +
> +htools unshare grep
> +
> +test --netns-only skips id mapping configuration
> +set OUT __STATEDIR__/netns-only.out
> +set ERR __STATEDIR__/netns-only.err
> +
> +passt unshare -r -- ./pasta -q --netns-only -- echo TEST > __OUT__ 2> __ERR__
> +check grep -qx TEST __OUT__
> +check [ ! -s __ERR__ ]
> diff --git a/test/run b/test/run
> index f858e55..c4073cc 100755
> --- a/test/run
> +++ b/test/run
> @@ -85,6 +85,7 @@ run() {
>
> setup pasta_options
> test pasta_options/log_to_file
> + test pasta_options/netns_only
> teardown pasta_options
>
> setup build
> --
> 2.55.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:[~2026-07-22 5:16 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-21 15:37 [PATCH 0/2] pasta: Do not configure ID mappings when invoked with --netns-only Dwayne B. Bent
2026-07-21 15:37 ` [PATCH 1/2] pasta: Regression test for bug 216 Dwayne B. Bent
2026-07-22 4:18 ` David Gibson [this message]
2026-07-21 15:37 ` [PATCH 2/2] pasta: Do not configure ID mappings when invoked with --netns-only Dwayne B. Bent
2026-07-22 4:40 ` David Gibson
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=amBEav7OlrBl7Fuu@zatzit \
--to=david@gibson.dropbear.id.au \
--cc=dbb@dbb.dev \
--cc=passt-dev@passt.top \
/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).