Matthieu Baerts <matthieu.baerts@tessares.net> 于2023年2月16日周四 18:23写道:
>
> In case of errors, the printed message had the expected and the seen
> value inverted.
>
> This patch simply correct the order: first the expected value, then the
> one that has been seen.
>
Matt, this patch looks good, please add my acked-by tag:
Acked-by: Geliang Tang <geliang.tang@suse.com>
Thanks,
-Geliang
> Fixes: 10d4273411be ("selftests: mptcp: userspace: print error details if any")
> Signed-off-by: Matthieu Baerts <matthieu.baerts@tessares.net>
> ---
> tools/testing/selftests/net/mptcp/userspace_pm.sh | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tools/testing/selftests/net/mptcp/userspace_pm.sh b/tools/testing/selftests/net/mptcp/userspace_pm.sh
> index 66c5be25c13d..48e52f995a98 100755
> --- a/tools/testing/selftests/net/mptcp/userspace_pm.sh
> +++ b/tools/testing/selftests/net/mptcp/userspace_pm.sh
> @@ -240,7 +240,7 @@ check_expected_one()
> fi
>
> stdbuf -o0 -e0 printf "\tExpected value for '%s': '%s', got '%s'.\n" \
> - "${var}" "${!var}" "${!exp}"
> + "${var}" "${!exp}" "${!var}"
> return 1
> }
>
>
> ---
> base-commit: 744bdaf391bf58029612bec80f292805e349ae27
> change-id: 20230216-mptcp-selftests-userspace-pm-typo-expected-e8774a556372
>
> Best regards,
> --
> Matthieu Baerts <matthieu.baerts@tessares.net>
>
>