Loading
test/common: Allow rpc_cmd() to execute multiple commands
This allows to pass to rpc_cmd() sets of commands via stdin. E.g.: rpc_cmd <<-CMDS bdev_malloc_create -b Malloc0 32 512 bdev_malloc_create -b Malloc1 32 512 bdev_malloc_create -b Malloc2 32 512 CMDS Since rpc.py is already running in a server mode, this is slightly faster than grouping commands and running scripts/rpc.py directly. Signed-off-by:Michal Berger <michalx.berger@intel.com> Change-Id: I29fbcf3f2751400980d35b4de2cce2da1cd2bf2a Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7087 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by:
Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com>