8258313465
Instead of doing some OS-specific magic to detect if the spdk app has already initialized, just try to send it an RPC. This serves mostly as cleanup, but also simplifies test output in cases where the spdk app could not be fully initialized. Previous waitforlisten implementation would return as soon as the rpc subsystem was initialized, but the app could have still failed on e.g. bdev initialization later on. Since waitforlisten() returned success, the script could continue its execution and try to execute some RPCs. The logs from the SPDK app and the bash script could easily mix, rendering the entire output not so clear to the user. To fix it, just try to send some RPC commands inside waitforlisten(). Change-Id: I33eaf362e3cc645f8ea3ee22fd48db1643442129 Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/457562 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>