test/vhost Remove json conf and use rps calls instead

Change-Id: I7d83130310cc1e7a1ab9d73c73ff47ef0961f14d
Signed-off-by: Pawel Kaminski <pawelx.kaminski@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/893
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Michal Berger <michalx.berger@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
Pawel Kaminski 2020-02-14 08:13:09 -05:00 committed by Tomasz Zawadzki
parent f139b86f45
commit dc3be4c8c1
2 changed files with 2 additions and 44 deletions

View File

@ -1,43 +0,0 @@
{
"subsystems": [
{
"subsystem": "accel",
"config": null
},
{
"subsystem": "interface",
"config": null
},
{
"subsystem": "net_framework",
"config": null
},
{
"subsystem": "bdev",
"config": [
{
"params": {
"block_size": 4096,
"num_blocks": 32768
},
"method": "bdev_malloc_create"
},
{
"params": {
"block_size": 4096,
"num_blocks": 32768
},
"method": "bdev_malloc_create"
}
]
},
{
"subsystem": "nbd",
"config": []
},
{
"subsystem": "scsi",
"config": null
}
]
}

View File

@ -67,9 +67,10 @@ notice ""
notice "running SPDK"
notice ""
vhost_run 0
vhost_load_config 0 $testdir/conf.json
notice ""
rpc_py="$rootdir/scripts/rpc.py -s $(get_vhost_dir 0)/rpc.sock"
$rpc_py bdev_malloc_create -b Malloc0 128 4096
$rpc_py bdev_malloc_create -b Malloc1 128 4096
# Try to get nonexistent vhost controller
if $rpc_py vhost_get_controllers -n nonexistent; then