test/common: exit with error in waitforlisten() if app crashed

In some cases, if vhost crashes on startup, test would continue
normally instead of failing

Change-Id: If2f82b5e3dad07403051353d6fcf5e83d5d002c0
Signed-off-by: Pawel Niedzwiecki <pawelx.niedzwiecki@intel.com>
Reviewed-on: https://review.gerrithub.io/403064
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
Pawel Niedzwiecki 2018-03-07 19:27:02 +01:00 committed by Daniel Verkamp
parent 85cc748fd0
commit ad22830896

View File

@ -212,7 +212,7 @@ function waitforlisten() {
# if the process is no longer running, then exit the script
# since it means the application crashed
if ! kill -s 0 $1; then
exit
exit 1
fi
if netstat -an -x | grep -iw LISTENING | grep -q $rpc_addr; then
ret=0