netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH iproute2] testsuite: ss: Fix spacing in expected output for ssfilter.t
@ 2018-11-10  9:21 Stefano Brivio
  2018-11-10 21:48 ` Phil Sutter
  0 siblings, 1 reply; 5+ messages in thread
From: Stefano Brivio @ 2018-11-10  9:21 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: Phil Sutter, Yoann P., netdev

Since commit 00240899ec0b ("ss: Actually print left delimiter for
columns") changes spacing in ss output, we also need to adjust for that in
the ss filter test.

Fixes: 00240899ec0b ("ss: Actually print left delimiter for columns")
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
---
 testsuite/tests/ss/ssfilter.t | 24 ++++++++++++------------
 1 file changed, 12 insertions(+), 12 deletions(-)

diff --git a/testsuite/tests/ss/ssfilter.t b/testsuite/tests/ss/ssfilter.t
index e74f1765cb72..3091054f2892 100755
--- a/testsuite/tests/ss/ssfilter.t
+++ b/testsuite/tests/ss/ssfilter.t
@@ -12,37 +12,37 @@ export TCPDIAG_FILE="$(dirname $0)/ss1.dump"
 ts_log "[Testing ssfilter]"
 
 ts_ss "$0" "Match dport = 22" -Htna dport = 22
-test_on "ESTAB    0           0                 10.0.0.1:36266           10.0.0.1:22"
+test_on "ESTAB     0           0                10.0.0.1:36266           10.0.0.1:22"
 
 ts_ss "$0" "Match dport 22" -Htna dport 22
-test_on "ESTAB    0           0                 10.0.0.1:36266           10.0.0.1:22"
+test_on "ESTAB     0           0                10.0.0.1:36266           10.0.0.1:22"
 
 ts_ss "$0" "Match (dport)" -Htna '( dport = 22 )'
-test_on "ESTAB    0           0                 10.0.0.1:36266           10.0.0.1:22"
+test_on "ESTAB     0           0                10.0.0.1:36266           10.0.0.1:22"
 
 ts_ss "$0" "Match src = 0.0.0.0" -Htna src = 0.0.0.0
-test_on "LISTEN     0           128                0.0.0.0:22             0.0.0.0:*"
+test_on "LISTEN      0           128               0.0.0.0:22             0.0.0.0:*"
 
 ts_ss "$0" "Match src 0.0.0.0" -Htna src 0.0.0.0
-test_on "LISTEN     0           128                0.0.0.0:22             0.0.0.0:*"
+test_on "LISTEN      0           128               0.0.0.0:22             0.0.0.0:*"
 
 ts_ss "$0" "Match src sport" -Htna src 0.0.0.0 sport = 22
-test_on "LISTEN     0           128                0.0.0.0:22             0.0.0.0:*"
+test_on "LISTEN      0           128               0.0.0.0:22             0.0.0.0:*"
 
 ts_ss "$0" "Match src and sport" -Htna src 0.0.0.0 and sport = 22
-test_on "LISTEN     0           128                0.0.0.0:22             0.0.0.0:*"
+test_on "LISTEN      0           128               0.0.0.0:22             0.0.0.0:*"
 
 ts_ss "$0" "Match src and sport and dport" -Htna src 10.0.0.1 and sport = 22 and dport = 50312
-test_on "ESTAB    0           0                 10.0.0.1:22           10.0.0.2:50312"
+test_on "ESTAB     0           0                10.0.0.1:22           10.0.0.2:50312"
 
 ts_ss "$0" "Match src and sport and (dport)" -Htna 'src 10.0.0.1 and sport = 22 and ( dport = 50312 )'
-test_on "ESTAB    0           0                 10.0.0.1:22           10.0.0.2:50312"
+test_on "ESTAB     0           0                10.0.0.1:22           10.0.0.2:50312"
 
 ts_ss "$0" "Match src and (sport and dport)" -Htna 'src 10.0.0.1 and ( sport = 22 and dport = 50312 )'
-test_on "ESTAB    0           0                 10.0.0.1:22           10.0.0.2:50312"
+test_on "ESTAB     0           0                10.0.0.1:22           10.0.0.2:50312"
 
 ts_ss "$0" "Match (src and sport) and dport" -Htna '( src 10.0.0.1 and sport = 22 ) and dport = 50312'
-test_on "ESTAB    0           0                 10.0.0.1:22           10.0.0.2:50312"
+test_on "ESTAB     0           0                10.0.0.1:22           10.0.0.2:50312"
 
 ts_ss "$0" "Match (src or src) and dst" -Htna '( src 0.0.0.0 or src 10.0.0.1 ) and dst 10.0.0.2'
-test_on "ESTAB    0           0                 10.0.0.1:22           10.0.0.2:50312"
+test_on "ESTAB     0           0                10.0.0.1:22           10.0.0.2:50312"
-- 
2.19.1

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

end of thread, other threads:[~2018-11-13  2:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-10  9:21 [PATCH iproute2] testsuite: ss: Fix spacing in expected output for ssfilter.t Stefano Brivio
2018-11-10 21:48 ` Phil Sutter
2018-11-11 11:50   ` Stefano Brivio
2018-11-11 12:12     ` Phil Sutter
2018-11-12 16:41   ` Stephen Hemminger

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 NNTP newsgroup(s).