Commit 50e44f84 authored by Pawel Kaminski's avatar Pawel Kaminski Committed by Tomasz Zawadzki
Browse files

test/vhost: Add negative test for vhost_scsi_controller_add_target

parent 6668f0d9
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -120,6 +120,11 @@ if [[ $RUN_NIGHTLY -eq 1 ]]; then
		error "Set coalescing with invalid parameter should fail"
	fi

	notice "Trying to add nonexistent device to scsi controller"
	if $rpc_py vhost_scsi_controller_add_target naa.0 0 nonexistent_bdev; then
		error "Adding nonexistent device to scsi controller succeeded, but it shouldn't"
	fi

	notice "Adding initial device (0) to naa.0"
	$rpc_py vhost_scsi_controller_add_target naa.0 0 Malloc0