Commit 08a7e4f4 authored by Karol Latecki's avatar Karol Latecki Committed by Daniel Verkamp
Browse files

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: default avatarKarol Latecki <karol.latecki@intel.com>
Reviewed-on: https://review.gerrithub.io/392745


Reviewed-by: default avatarDariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarPaweł Niedźwiecki <pawelx.niedzwiecki@intel.com>
Reviewed-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
parent 68008f3e
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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