]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
testsuite: ss: Fix spacing in expected output for ssfilter.t
authorStefano Brivio <sbrivio@redhat.com>
Sat, 10 Nov 2018 09:21:59 +0000 (10:21 +0100)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 12 Nov 2018 16:30:34 +0000 (08:30 -0800)
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>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
testsuite/tests/ss/ssfilter.t

index e74f1765cb723df0ca3f861b646661d60e6fba2c..3091054f2892874c18ae8addca61b39db9cf4944 100755 (executable)
@@ -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"