test/vhost: Negative test - get controller that does not exist

Change-Id: I9f241c2dea10891bed62e7dcd26cb6d7ffc061d5
Signed-off-by: Pawel Kaminski <pawelx.kaminski@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/831
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Karol Latecki <karol.latecki@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-by: Maciej Wawryk <maciejx.wawryk@intel.com>
Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
This commit is contained in:
Pawel Kaminski 2020-01-30 15:24:07 -05:00 committed by Tomasz Zawadzki
parent e338a8dd37
commit 765ae06958

View File

@ -75,6 +75,11 @@ if [[ $RUN_NIGHTLY -eq 1 ]]; then
rpc_py="$rootdir/scripts/rpc.py -s $(get_vhost_dir 0)/rpc.sock" rpc_py="$rootdir/scripts/rpc.py -s $(get_vhost_dir 0)/rpc.sock"
# Try to get nonexistent vhost controller
if $rpc_py vhost_get_controllers -n nonexistent; then
error "vhost returned controller that does not exist"
fi
# General commands # General commands
notice "Trying to remove nonexistent controller" notice "Trying to remove nonexistent controller"
if $rpc_py vhost_delete_controller unk0 > /dev/null; then if $rpc_py vhost_delete_controller unk0 > /dev/null; then