All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH mptcp-next] Squash to "selftests: mptcp: add the MP_FASTCLOSE mibs check"
@ 2022-02-23 23:35 Geliang Tang
  2022-02-24  1:27 ` Mat Martineau
  2022-02-24 12:59 ` Matthieu Baerts
  0 siblings, 2 replies; 3+ messages in thread
From: Geliang Tang @ 2022-02-23 23:35 UTC (permalink / raw)
  To: mptcp; +Cc: Geliang Tang

This following code appeared in another commit "selftests: mptcp: add infinite map
mibs check":

        echo -n " - fclzrx"
-       count=`ip netns exec $ns1 nstat -as | grep MPTcpExtMPFastcloseRx | awk '{print $2}'`
+       count=$(ip netns exec $ns1 nstat -as | grep MPTcpExtMPFastcloseRx | awk '{print $2}')
        [ -z "$count" ] && count=0
        if [ "$count" != "$fclose_rx" ]; then
                echo "[fail] got $count MP_FASTCLOSE[s] RX expected $fclose_rx"

It's better to squash it here. With this patch, it will be dropped from the commit
"selftests: mptcp: add infinite map mibs check" automatically.

Signed-off-by: Geliang Tang <geliang.tang@suse.com>
---
 tools/testing/selftests/net/mptcp/mptcp_join.sh | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/testing/selftests/net/mptcp/mptcp_join.sh b/tools/testing/selftests/net/mptcp/mptcp_join.sh
index 7d414cff02a0..10339a796325 100755
--- a/tools/testing/selftests/net/mptcp/mptcp_join.sh
+++ b/tools/testing/selftests/net/mptcp/mptcp_join.sh
@@ -800,7 +800,7 @@ chk_fclose_nr()
 	local dump_stats
 
 	printf "%-${nr_blank}s %s" " " "ctx"
-	count=`ip netns exec $ns2 nstat -as | grep MPTcpExtMPFastcloseTx | awk '{print $2}'`
+	count=$(ip netns exec $ns2 nstat -as | grep MPTcpExtMPFastcloseTx | awk '{print $2}')
 	[ -z "$count" ] && count=0
 	if [ "$count" != "$fclose_tx" ]; then
 		echo "[fail] got $count MP_FASTCLOSE[s] TX expected $fclose_tx"
@@ -811,7 +811,7 @@ chk_fclose_nr()
 	fi
 
 	echo -n " - fclzrx"
-	count=`ip netns exec $ns1 nstat -as | grep MPTcpExtMPFastcloseRx | awk '{print $2}'`
+	count=$(ip netns exec $ns1 nstat -as | grep MPTcpExtMPFastcloseRx | awk '{print $2}')
 	[ -z "$count" ] && count=0
 	if [ "$count" != "$fclose_rx" ]; then
 		echo "[fail] got $count MP_FASTCLOSE[s] RX expected $fclose_rx"
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH mptcp-next] Squash to "selftests: mptcp: add the MP_FASTCLOSE mibs check"
  2022-02-23 23:35 [PATCH mptcp-next] Squash to "selftests: mptcp: add the MP_FASTCLOSE mibs check" Geliang Tang
@ 2022-02-24  1:27 ` Mat Martineau
  2022-02-24 12:59 ` Matthieu Baerts
  1 sibling, 0 replies; 3+ messages in thread
From: Mat Martineau @ 2022-02-24  1:27 UTC (permalink / raw)
  To: Geliang Tang; +Cc: mptcp

On Thu, 24 Feb 2022, Geliang Tang wrote:

> This following code appeared in another commit "selftests: mptcp: add infinite map
> mibs check":
>
>        echo -n " - fclzrx"
> -       count=`ip netns exec $ns1 nstat -as | grep MPTcpExtMPFastcloseRx | awk '{print $2}'`
> +       count=$(ip netns exec $ns1 nstat -as | grep MPTcpExtMPFastcloseRx | awk '{print $2}')
>        [ -z "$count" ] && count=0
>        if [ "$count" != "$fclose_rx" ]; then
>                echo "[fail] got $count MP_FASTCLOSE[s] RX expected $fclose_rx"
>
> It's better to squash it here. With this patch, it will be dropped from the commit
> "selftests: mptcp: add infinite map mibs check" automatically.
>

Hi Geliang,

I agree, looks good to squash.


-Mat

> Signed-off-by: Geliang Tang <geliang.tang@suse.com>
> ---
> tools/testing/selftests/net/mptcp/mptcp_join.sh | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/tools/testing/selftests/net/mptcp/mptcp_join.sh b/tools/testing/selftests/net/mptcp/mptcp_join.sh
> index 7d414cff02a0..10339a796325 100755
> --- a/tools/testing/selftests/net/mptcp/mptcp_join.sh
> +++ b/tools/testing/selftests/net/mptcp/mptcp_join.sh
> @@ -800,7 +800,7 @@ chk_fclose_nr()
> 	local dump_stats
>
> 	printf "%-${nr_blank}s %s" " " "ctx"
> -	count=`ip netns exec $ns2 nstat -as | grep MPTcpExtMPFastcloseTx | awk '{print $2}'`
> +	count=$(ip netns exec $ns2 nstat -as | grep MPTcpExtMPFastcloseTx | awk '{print $2}')
> 	[ -z "$count" ] && count=0
> 	if [ "$count" != "$fclose_tx" ]; then
> 		echo "[fail] got $count MP_FASTCLOSE[s] TX expected $fclose_tx"
> @@ -811,7 +811,7 @@ chk_fclose_nr()
> 	fi
>
> 	echo -n " - fclzrx"
> -	count=`ip netns exec $ns1 nstat -as | grep MPTcpExtMPFastcloseRx | awk '{print $2}'`
> +	count=$(ip netns exec $ns1 nstat -as | grep MPTcpExtMPFastcloseRx | awk '{print $2}')
> 	[ -z "$count" ] && count=0
> 	if [ "$count" != "$fclose_rx" ]; then
> 		echo "[fail] got $count MP_FASTCLOSE[s] RX expected $fclose_rx"
> -- 
> 2.34.1
>
>
>

--
Mat Martineau
Intel

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH mptcp-next] Squash to "selftests: mptcp: add the MP_FASTCLOSE mibs check"
  2022-02-23 23:35 [PATCH mptcp-next] Squash to "selftests: mptcp: add the MP_FASTCLOSE mibs check" Geliang Tang
  2022-02-24  1:27 ` Mat Martineau
@ 2022-02-24 12:59 ` Matthieu Baerts
  1 sibling, 0 replies; 3+ messages in thread
From: Matthieu Baerts @ 2022-02-24 12:59 UTC (permalink / raw)
  To: Geliang Tang, mptcp

Hi Geliang, Mat,

On 24/02/2022 00:35, Geliang Tang wrote:
> This following code appeared in another commit "selftests: mptcp: add infinite map
> mibs check":
> 
>         echo -n " - fclzrx"
> -       count=`ip netns exec $ns1 nstat -as | grep MPTcpExtMPFastcloseRx | awk '{print $2}'`
> +       count=$(ip netns exec $ns1 nstat -as | grep MPTcpExtMPFastcloseRx | awk '{print $2}')
>         [ -z "$count" ] && count=0
>         if [ "$count" != "$fclose_rx" ]; then
>                 echo "[fail] got $count MP_FASTCLOSE[s] RX expected $fclose_rx"
> 
> It's better to squash it here. With this patch, it will be dropped from the commit
> "selftests: mptcp: add infinite map mibs check" automatically.

Thank you for having catch that and thank you for the patch and review!

- 73df33204c5f: "squashed" in "selftests: mptcp: add the MP_FASTCLOSE
mibs check"
- Results: b87ff0ea9dce..4bbd9add0797

Builds and tests are now in progress:

https://cirrus-ci.com/github/multipath-tcp/mptcp_net-next/export/20220224T125917
https://github.com/multipath-tcp/mptcp_net-next/actions/workflows/build-validation.yml?query=branch:export

Cheers,
Matt
-- 
Tessares | Belgium | Hybrid Access Solutions
www.tessares.net

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-02-24 12:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-23 23:35 [PATCH mptcp-next] Squash to "selftests: mptcp: add the MP_FASTCLOSE mibs check" Geliang Tang
2022-02-24  1:27 ` Mat Martineau
2022-02-24 12:59 ` Matthieu Baerts

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.