[Avocado-devel] [avocado-devel] Negative testcases

Radek Duda rduda at redhat.com
Wed Jan 25 15:33:57 UTC 2017


I spoke to Lukas and Cleber personally today so it is clear now. The thing
is that I have to put off preprocess_vm function by setting start_vm = no.
and put it into try..except block.

Radek

On Wed, Jan 25, 2017 at 1:37 PM, Lucas Meneghel Rodrigues <lookkas at gmail.com
> wrote:

> Isn't catching the exception and checking if its fields look like what you
> expect an option? That is the sort of thing that in my mind wouldn't need
> additional support.
>
> On Tue, Jan 24, 2017 at 4:33 PM Radek Duda <rduda at redhat.com> wrote:
>
>> Hi,
>>
>> I wonder if there is any possiblity to perform negative testcases in
>> avocado / avocado-vt?
>>
>> To be more specific:
>> If I supply some nonsence to SPICE listening port as qemu-kvm parameter,
>> the creation of VM should fail. Indeed it fails - throws VMCreateError, but
>> that is all.
>>
>> Is there any way how to mark this TC as passed?
>>
>> Thanks for reply.
>>
>>
>> Regards,
>> Radek Duda
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/avocado-devel/attachments/20170125/b8dd8e1a/attachment.htm>


More information about the Avocado-devel mailing list