From: Matthieu Baerts <matttbe@kernel.org>
To: Geliang Tang <geliang@kernel.org>, mptcp@lists.linux.dev
Cc: Geliang Tang <tanggeliang@kylinos.cn>
Subject: Re: [PATCH mptcp-next] Squash to "selftests: mptcp: print test results with colors"
Date: Thu, 7 Mar 2024 10:35:43 +0100 [thread overview]
Message-ID: <78621021-60bd-4d7e-80d7-2df9a4f3d571@kernel.org> (raw)
In-Reply-To: <6f47bafed58fcc6fd3236b12134b23ff012d5643.1709791100.git.tanggeliang@kylinos.cn>
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.
> return 1
> }
>
Cheers,
Matt
--
Sponsored by the NGI0 Core fund.
next prev parent reply other threads:[~2024-03-07 9:35 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 ` Matthieu Baerts [this message]
2024-03-07 9:49 ` [PATCH mptcp-next] Squash to "selftests: mptcp: print test results with colors" Geliang Tang
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=78621021-60bd-4d7e-80d7-2df9a4f3d571@kernel.org \
--to=matttbe@kernel.org \
--cc=geliang@kernel.org \
--cc=mptcp@lists.linux.dev \
--cc=tanggeliang@kylinos.cn \
/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.