From: Geliang Tang <geliang@kernel.org>
To: Matthieu Baerts <matttbe@kernel.org>
Cc: mptcp@lists.linux.dev
Subject: Re: [PATCH mptcp-next] Squash to "selftests: mptcp: print test results with colors"
Date: Thu, 7 Mar 2024 17:49:59 +0800 [thread overview]
Message-ID: <ZemNx1NDoNIjlVDH@t480> (raw)
In-Reply-To: <78621021-60bd-4d7e-80d7-2df9a4f3d571@kernel.org>
Hi Matt,
On Thu, Mar 07, 2024 at 10:35:43AM +0100, Matthieu Baerts wrote:
> Hi Geliang,
>
> On 07/03/2024 06:58, Geliang Tang wrote:
> > From: Geliang Tang <tanggeliang@kylinos.cn>
> >
> > _printf is dropped now, use mptcp_lib_pr_fail instead.
>
> Good catch.
>
> > Signed-off-by: Geliang Tang <tanggeliang@kylinos.cn>
> > ---
> > tools/testing/selftests/net/mptcp/userspace_pm.sh | 3 +--
> > 1 file changed, 1 insertion(+), 2 deletions(-)
> >
> > diff --git a/tools/testing/selftests/net/mptcp/userspace_pm.sh b/tools/testing/selftests/net/mptcp/userspace_pm.sh
> > index 9fc9e574bc27..30652a1c548b 100755
> > --- a/tools/testing/selftests/net/mptcp/userspace_pm.sh
> > +++ b/tools/testing/selftests/net/mptcp/userspace_pm.sh
> > @@ -242,8 +242,7 @@ check_expected_one()
> > test_fail
> > fi
> >
> > - _printf "\tExpected value for '%s': '%s', got '%s'.\n" \
> > - "${var}" "${!exp}" "${!var}"
> > + mptcp_lib_pr_fail "Expected value for '${var}': '${!exp}', got '${!var}'."
>
> Maybe best to use 'mptcp_lib_print_err()' instead?
> Because a "[FAIL]" will already be printed via test_fail() called just
> above.
>
> I will apply this patch with mptcp_lib_print_err instead. Please tell me
> if it's not OK.
Yes, mptcp_lib_print_err is much better.
Thanks,
-Geliang
>
> > return 1
> > }
> >
>
> Cheers,
> Matt
> --
> Sponsored by the NGI0 Core fund.
prev parent reply other threads:[~2024-03-07 9:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-07 5:58 [PATCH mptcp-next] Squash to "selftests: mptcp: print test results with colors" Geliang Tang
2024-03-07 6:47 ` Squash to "selftests: mptcp: print test results with colors": Tests Results MPTCP CI
2024-03-07 7:04 ` MPTCP CI
2024-03-07 9:35 ` [PATCH mptcp-next] Squash to "selftests: mptcp: print test results with colors" Matthieu Baerts
2024-03-07 9:49 ` Geliang Tang [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=ZemNx1NDoNIjlVDH@t480 \
--to=geliang@kernel.org \
--cc=matttbe@kernel.org \
--cc=mptcp@lists.linux.dev \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.