From 765ae06958985dd2eaf9a47eec37c08513414587 Mon Sep 17 00:00:00 2001 From: Pawel Kaminski Date: Thu, 30 Jan 2020 15:24:07 -0500 Subject: [PATCH] test/vhost: Negative test - get controller that does not exist Change-Id: I9f241c2dea10891bed62e7dcd26cb6d7ffc061d5 Signed-off-by: Pawel Kaminski Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/831 Tested-by: SPDK CI Jenkins Reviewed-by: Karol Latecki Reviewed-by: Shuhei Matsumoto Reviewed-by: Maciej Wawryk Reviewed-by: Darek Stojaczyk --- test/vhost/other/negative.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/vhost/other/negative.sh b/test/vhost/other/negative.sh index dfad7361d..5b7d04baa 100755 --- a/test/vhost/other/negative.sh +++ b/test/vhost/other/negative.sh @@ -75,6 +75,11 @@ if [[ $RUN_NIGHTLY -eq 1 ]]; then 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 notice "Trying to remove nonexistent controller" if $rpc_py vhost_delete_controller unk0 > /dev/null; then