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:
parent
85cc748fd0
commit
ad22830896
@ -212,7 +212,7 @@ function waitforlisten() {
|
|||||||
# if the process is no longer running, then exit the script
|
# if the process is no longer running, then exit the script
|
||||||
# since it means the application crashed
|
# since it means the application crashed
|
||||||
if ! kill -s 0 $1; then
|
if ! kill -s 0 $1; then
|
||||||
exit
|
exit 1
|
||||||
fi
|
fi
|
||||||
if netstat -an -x | grep -iw LISTENING | grep -q $rpc_addr; then
|
if netstat -an -x | grep -iw LISTENING | grep -q $rpc_addr; then
|
||||||
ret=0
|
ret=0
|
||||||
|
Loading…
Reference in New Issue
Block a user