changeset 39204:924a6b819cf5

test-framework-sh: avoid netstat Problem reported by Kristýna Streitová (Bug#29947). * tests/init.sh (rand_bytes_): Stop using netstat, as it's deprecated on SuSE and it's not that important anyway.
author Paul Eggert <eggert@cs.ucla.edu>
date Tue, 02 Jan 2018 19:05:05 -0800
parents bd890910b7ec
children 372b243eb186
files ChangeLog tests/init.sh
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Tue Jan 02 08:30:34 2018 -0800
+++ b/ChangeLog	Tue Jan 02 19:05:05 2018 -0800
@@ -1,3 +1,10 @@
+2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
+
+	test-framework-sh: avoid netstat
+	Problem reported by Kristýna Streitová (Bug#29947).
+	* tests/init.sh (rand_bytes_): Stop using netstat, as it's
+	deprecated on SuSE and it's not that important anyway.
+
 2018-01-01  Jim Meyering  <meyering@fb.com>
 
 	update-copyright: add code to handle more special cases
--- a/tests/init.sh	Tue Jan 02 08:30:34 2018 -0800
+++ b/tests/init.sh	Tue Jan 02 19:05:05 2018 -0800
@@ -527,7 +527,7 @@
   fi
 
   n_plus_50_=`expr $n_ + 50`
-  cmds_='date; date +%N; free; who -a; w; ps auxww; ps ef; netstat -n'
+  cmds_='date; date +%N; free; who -a; w; ps auxww; ps ef'
   data_=` (eval "$cmds_") 2>&1 | gzip `
 
   # Ensure that $data_ has length at least 50+$n_