From 08a7e4f4f82f90ea1c32cc6dbc7c7030b0ff4d27 Mon Sep 17 00:00:00 2001 From: Karol Latecki Date: Fri, 22 Dec 2017 09:33:12 +0100 Subject: [PATCH] test/vhost: change mask for ctrl construct negative test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tests need adjustments due to patch: https://review.gerrithub.io/#/c/392587/ Change-Id: I098aca99fe22a9e01246da74b4b9fbf25f4b5b99 Signed-off-by: Karol Latecki Reviewed-on: https://review.gerrithub.io/392745 Reviewed-by: Dariusz Stojaczyk Tested-by: SPDK Automated Test System Reviewed-by: Paweł Niedźwiecki Reviewed-by: Daniel Verkamp --- test/vhost/fiotest/autotest.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/vhost/fiotest/autotest.sh b/test/vhost/fiotest/autotest.sh index 62cc0cf64..f8e390870 100755 --- a/test/vhost/fiotest/autotest.sh +++ b/test/vhost/fiotest/autotest.sh @@ -161,7 +161,7 @@ for vm_conf in ${vms[@]}; do done echo "INFO: Trying to create scsi controller with incorrect cpumask" - if $rpc_py construct_vhost_scsi_controller vhost.invalid.cpumask --cpumask 9; then + if $rpc_py construct_vhost_scsi_controller vhost.invalid.cpumask --cpumask 0x2; then echo "ERROR: Creating scsi controller with incorrect cpumask succeeded, but it shouldn't" false fi @@ -185,7 +185,7 @@ for vm_conf in ${vms[@]}; do fi echo "INFO: Trying to create block controller with incorrect cpumask" - if $rpc_py construct_vhost_blk_controller vhost.invalid.cpumask Malloc0 --cpumask 9; then + if $rpc_py construct_vhost_blk_controller vhost.invalid.cpumask Malloc0 --cpumask 0x2; then echo "ERROR: Creating block controller with incorrect cpumask succeeded, but it shouldn't" false fi @@ -201,6 +201,7 @@ for vm_conf in ${vms[@]}; do echo "ERROR: Creating block controller with incorrect name succeeded, but it shouldn't" false fi + done <<< "${conf[2]}" unset IFS; $rpc_py get_vhost_controllers