test/vhost: change mask for ctrl construct negative test

Tests need adjustments due to patch:
https://review.gerrithub.io/#/c/392587/

Change-Id: I098aca99fe22a9e01246da74b4b9fbf25f4b5b99
Signed-off-by: Karol Latecki <karol.latecki@intel.com>
Reviewed-on: https://review.gerrithub.io/392745
Reviewed-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Paweł Niedźwiecki <pawelx.niedzwiecki@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
Karol Latecki 2017-12-22 09:33:12 +01:00 committed by Daniel Verkamp
parent 68008f3ec5
commit 08a7e4f4f8

View File

@ -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