]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Write remaining processes and ports into a file
authorJouni Malinen <j@w1.fi>
Sun, 22 Dec 2024 10:44:17 +0000 (12:44 +0200)
committerJouni Malinen <j@w1.fi>
Sun, 22 Dec 2024 11:27:29 +0000 (13:27 +0200)
This can be helpful for debugging test failures due to something not
getting terminated properly.

Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/run-all.sh

index bee753bb69b141951e25b050fb1b7a3393948470..507488041d03f84b392f49b9f581231d3669b336 100755 (executable)
@@ -138,6 +138,9 @@ ${SUDO} env VM=$VM ./run-tests.py -D --logdir "$LOGDIR" $TRACE_ARGS -q $DB $RUN_
 
 ./stop.sh
 
+ps ax > $LOGDIR/after-stop-ps-ax
+netstat -tnlu > $LOGDIR/after-stop-netstat
+
 if [ ! -z "$VALGRIND" ] ; then
     failures=`grep "ERROR SUMMARY" $LOGDIR/valgrind-* | grep -v " 0 errors" | wc -l`
     if [ $failures -gt 0 ]; then